diff --git a/scripts/cmd.sh b/scripts/cmd.sh index 9f8c09d..cccd61c 100755 --- a/scripts/cmd.sh +++ b/scripts/cmd.sh @@ -1,6 +1,6 @@ #!/usr/bin/bash -if [ "$#" -eq 0 ]; then +if [ "$#" -ne 0 ]; then args='' for arg in $@; do if [[ $arg =~ ^-.+$ ]]; then