diff --git a/scripts/publish.sh b/scripts/publish.sh index afd4c696b..783c3b3b0 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