From 98bb5ada58ce1da6e8bbd7cdba449903f52c1a0c Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Wed, 15 Apr 2020 16:49:20 +0200 Subject: [PATCH] libexec/klab-fetch: print usage on missing arg --- libexec/klab-fetch | 1 + 1 file changed, 1 insertion(+) diff --git a/libexec/klab-fetch b/libexec/klab-fetch index c00ef821..43afe77f 100755 --- a/libexec/klab-fetch +++ b/libexec/klab-fetch @@ -5,6 +5,7 @@ if [ -z "$KLAB_OUT" ]; then KLAB_OUT=out fi +[[ $# -eq 1 ]] || (echo >&2 "Usage: klab fetch \$URL" && exit 1) url=$1 filename=${url##*/}