Commit Diff
Diff:
6123f4333d09a452a1017a161c1cc376a230dba0
5d62090684fcb76381893d7ca4a89dff85db6c06
Commit:
5d62090684fcb76381893d7ca4a89dff85db6c06
Tree:
2066da5e9b6e91acfddb90eff6012790e3924603
Author:
Fred. Galusik <dev1@galusik.xyz>
Committer:
Fred. Galusik <dev1@galusik.xyz>
Date:
Sun Sep 11 12:35:19 2016 UTC
Message:
rm if exist to not let ftp warn about not supporting resume
blob - 8b9179349ca7792fdfc45ab6b1f8fd2f43a9e2f9
blob + 882cb90296c98d598105a7b1622271f5ce965282
--- snaps
+++ snaps
@@ -71,6 +71,10 @@ LASTSNAPS=/tmp/snaps
toupgrade() {
echo "Checking for new version..."
+ # some cleanup to not let ftp warn about not supporting resume
+ if [[ -f $LASTSNAPS ]]; then
+ rm $LASTNAPS
+ fi
$GET -V -o "$LASTSNAPS" "$REMOTESNAPS"
REMOTEVERSION=$(grep "^VERSION=" $LASTSNAPS | cut -d'=' -f2)
Frédéric Galusik