setup.sh/setup: show usage when no argument is given (#2540)

This commit is contained in:
Casper 2022-04-18 15:28:12 +02:00 committed by GitHub
parent 1b1877f025
commit ee0c088b1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View file

@ -167,4 +167,9 @@ function _main
esac
}
_main "${@}"
if [[ -z ${1:-} ]]
then
_usage
else
_main "${@}"
fi