Commit Diff
Diff:
672451998e3154c0f29b2602af549509706c5a50
77c2a4634ad503b172068f34c0f6b5f598c0fe09
Commit:
77c2a4634ad503b172068f34c0f6b5f598c0fe09
Tree:
29fccd4fdc756bed3a6511d994bb436c0023b327
Author:
Fred. Galusik <dev1@galusik.xyz>
Committer:
Fred. Galusik <dev1@galusik.xyz>
Date:
Sun Oct 23 12:02:53 2016 UTC
Message:
add a warning if remote snaps is not reachable (good advice from Stephane HUC)
blob - 6715c973b3c4adc6def1d570a9d574dbebba26f4
blob + 56c41aff8b6b138453ebb044e6f5699870d56c4c
--- snaps
+++ snaps
@@ -74,11 +74,12 @@ LASTSNAPS=/tmp/snaps
###
toupgrade() {
- echo "\nChecking for new version..."
+ echo "\n=== NEW VERSION CHECKING ==="
# some cleanup to not let ftp warn about not supporting resume
if [[ -f $LASTSNAPS ]]; then
rm -f $LASTSNAPS
fi
+
$GET -V -o "$LASTSNAPS" "$REMOTESNAPS"
REMOTEVERSION=$(awk -F '=' '/^VERSION=/ { print $2 }' "$LASTSNAPS")
@@ -91,6 +92,9 @@ toupgrade() {
else
echo "==> GOOD: snaps is up-to-date"
fi
+
+ else
+ echo "==> WARNING: Remote snaps not reachable ! Check the connection."
fi
}
Frédéric Galusik