mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
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:
parent
cdb0848db5
commit
7bc4cdcba0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user