Commit Diff
Diff:
b91687e7b4c79bea0cbdd04038a8492c709c1389
c5bfac5bcd1f9e46d84b4cbb6b72b395a4e4033c
Commit:
c5bfac5bcd1f9e46d84b4cbb6b72b395a4e4033c
Tree:
369ba9934e1db8c4fb13f83c04dbcc4bcebc9beb
Author:
Fred. Galusik <dev1@galusik.xyz>
Committer:
Fred. Galusik <dev1@galusik.xyz>
Date:
Sun Sep 11 12:19:44 2016 UTC
Message:
change remote var to deal with grep
blob - 7550d06a263fedd6fd88196419a7f20e86510aca
blob + 73afd30001478b57bb7a7929be38efaa806c7dc5
--- snaps
+++ snaps
@@ -72,14 +72,14 @@ LASTSNAPS=/tmp/snaps
toupgrade() {
echo "Checking for new version..."
$GET -V -o "$LASTSNAPS" "$REMOTESNAPS"
- REMOTEVERSION=$(grep "VERSION=" "$LASTSNAPS" | cut -d'=' -f2)
+ VERSIONREMOTE=$(grep "VERSION=" $LASTSNAPS | cut -d'=' -f2)
if [ $? -eq 0 ]; then
- if [ "$VERSION" != "$REMOTEVERSION" ]; then
+ if [ "$VERSION" != "$VERSIONREMOTE" ]; then
echo "---"
echo "This is not the last version of snaps".
- echo "Last version : $REMOTEVERSION"
+ echo "Last version : $VERSIONREMOTE"
echo "To upgrade, run 'snaps -u'"
echo "---"
fi
Frédéric Galusik