diff --git a/scripts/publish.sh b/scripts/publish.sh index afd4c696b..a500e990f 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -7,7 +7,7 @@ function print_usage() { echo "Publishes crates to crates.io." } -if [ "$1" = "-h" ] || [ "$1" = "--help" ] +if [ $# = 1 ] && ( [ "$1" = "-h" ] || [ "$1" = "--help" ]) then print_usage exit 1