From abae53b4863850839eda054de054dd8622ab33c3 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sat, 14 Sep 2019 19:05:55 -0700 Subject: [PATCH] only print unknown verb when there is one provided.. --- snapaid.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snapaid.sh b/snapaid.sh index 6f2794f..a6e8417 100755 --- a/snapaid.sh +++ b/snapaid.sh @@ -57,6 +57,7 @@ fi # -N for timestamps # --backups=x for backing up hostname=people.FreeBSD.org +hostname=www.funkthat.com completeurl="https://${hostname}/~jmg/FreeBSD-snap/snapshot.complete.idx.xz" currenturl="https://${hostname}/~jmg/FreeBSD-snap/snapshot.idx.xz" @@ -478,7 +479,9 @@ elif [ x"$1" = x"test" ]; then echo tests completed!!! else - echo "Unknown verb: $1" + if [ $# -gt 0 ]; then + echo "Unknown verb: $1" + fi echo "Usage:" echo " $0 verify file ..." echo " $0 find"