Skip to content

Commit

Permalink
Fix publish.sh help / args
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Lacy committed Mar 25, 2022
1 parent ce603a4 commit 2c79fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c79fa1

Please sign in to comment.