catch -h/--help passed to create_box.sh and output usage

instead of passing it to readlink, confisung the user with strange
output
This commit is contained in:
Evgeni Golov 2016-12-01 12:42:55 +01:00
parent cdb0848db5
commit 7bc4cdcba0

View File

@ -32,7 +32,7 @@ isabspath(){
[[ "$path" =~ ^/.* ]] [[ "$path" =~ ^/.* ]]
} }
if [ -z "$1" ]; then if [ -z "$1" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
usage usage
exit 1 exit 1
fi fi