From 7bc4cdcba0bcac100e0148bc8c016b101fe7bbac Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 1 Dec 2016 12:42:55 +0100 Subject: [PATCH] catch -h/--help passed to create_box.sh and output usage instead of passing it to readlink, confisung the user with strange output --- tools/create_box.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/create_box.sh b/tools/create_box.sh index d0437f3..dd48245 100755 --- a/tools/create_box.sh +++ b/tools/create_box.sh @@ -32,7 +32,7 @@ isabspath(){ [[ "$path" =~ ^/.* ]] } -if [ -z "$1" ]; then +if [ -z "$1" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then usage exit 1 fi