Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
libexec/klab-fetch: print usage on missing arg
Browse files Browse the repository at this point in the history
  • Loading branch information
asymmetric committed Apr 15, 2020
1 parent 156918a commit 98bb5ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libexec/klab-fetch
Original file line number Diff line number Diff line change
Expand Up @@ -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##*/}

Expand Down

0 comments on commit 98bb5ad

Please sign in to comment.