mirror of
https://github.com/ViViDboarder/drone-webdav.git
synced 2024-06-02 15:32:24 +00:00
Merge pull request #1 from 6543-forks/add-customization_rm-else
rm else
This commit is contained in:
commit
744226ee3f
8
push.sh
8
push.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user