Merge pull request #1 from 6543-forks/add-customization_rm-else

rm else
This commit is contained in:
opyale 2020-05-17 23:47:42 +02:00 committed by GitHub
commit 744226ee3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,18 +49,16 @@ while [ "${PLUGIN_ATTEMPTS}" -gt 0 ]; do
}
# Show messages in case uploads have failed
if [ "${PLUGIN_ATTEMPTS}" -gt 1 ]; then
[ "$PLUGIN_ATTEMPTS" -gt 1 ] && {
echo "[INFO] Upload failed. Attempting a new upload, if possible."
else
echo "[ERROR] All upload attempts have failed."
fi
}
PLUGIN_ATTEMPTS=$((PLUGIN_ATTEMPTS-1))
done
# Returns an error because the upload was not successful
echo "[ERROR] All upload attempts have failed."
exit 1