Browse Source

only print unknown verb when there is one provided..

main
John-Mark Gurney 5 years ago
parent
commit
abae53b486
Signed by: jmg GPG Key ID: 205F0B33DD006ADA
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      snapaid.sh

+ 4
- 1
snapaid.sh View File

@@ -57,6 +57,7 @@ fi
# -N for timestamps # -N for timestamps
# --backups=x for backing up # --backups=x for backing up
hostname=people.FreeBSD.org hostname=people.FreeBSD.org
hostname=www.funkthat.com
completeurl="https://${hostname}/~jmg/FreeBSD-snap/snapshot.complete.idx.xz" completeurl="https://${hostname}/~jmg/FreeBSD-snap/snapshot.complete.idx.xz"
currenturl="https://${hostname}/~jmg/FreeBSD-snap/snapshot.idx.xz" currenturl="https://${hostname}/~jmg/FreeBSD-snap/snapshot.idx.xz"


@@ -478,7 +479,9 @@ elif [ x"$1" = x"test" ]; then


echo tests completed!!! echo tests completed!!!
else else
echo "Unknown verb: $1"
if [ $# -gt 0 ]; then
echo "Unknown verb: $1"
fi
echo "Usage:" echo "Usage:"
echo " $0 verify file ..." echo " $0 verify file ..."
echo " $0 find" echo " $0 find"


Loading…
Cancel
Save