Commit Diff
Diff:
5d62090684fcb76381893d7ca4a89dff85db6c06
8d9d6457335798c0ba6d9012d9084f96fd942d75
Commit:
8d9d6457335798c0ba6d9012d9084f96fd942d75
Tree:
87e25ede7f85ad1a0c3c48eff0d3db667019209b
Author:
Fred. Galusik <dev1@galusik.xyz>
Committer:
Fred. Galusik <dev1@galusik.xyz>
Date:
Sun Sep 11 12:51:14 2016 UTC
Message:
some text cleaning
blob - 882cb90296c98d598105a7b1622271f5ce965282
blob + 1f2a41b4a6a8413d07be861212a2945e4fd24c56
--- snaps
+++ snaps
@@ -73,7 +73,7 @@ toupgrade() {
echo "Checking for new version..."
# some cleanup to not let ftp warn about not supporting resume
if [[ -f $LASTSNAPS ]]; then
- rm $LASTNAPS
+ rm -f $LASTSNAPS
fi
$GET -V -o "$LASTSNAPS" "$REMOTESNAPS"
REMOTEVERSION=$(grep "^VERSION=" $LASTSNAPS | cut -d'=' -f2)
@@ -86,6 +86,8 @@ toupgrade() {
echo "Last version : $REMOTEVERSION"
echo "To upgrade, run 'snaps -u'"
echo "---"
+ else
+ echo "===> OK: snaps is up-to-date."
fi
fi
}
@@ -98,6 +100,7 @@ upgrade() {
usage() {
+ echo ""
echo "${0##*/} $VERSION"
echo "Usage: ${0##*/} [-gGlh]"
echo " -g fetch and check bsd.rd from \$MIRROR"
Frédéric Galusik