diff --git a/validate_pkgs.sh b/validate_pkgs.sh index 34c9830..138f249 100755 --- a/validate_pkgs.sh +++ b/validate_pkgs.sh @@ -9,7 +9,7 @@ packages=${@:2} echo -n "* Validating action arguments... "; echo $version | grep -o " " > /dev/null -if [ $? -ne 0 ]; then +if [ $? -eq 0 ]; then echo "aborted." echo "* Version value '$version' cannot contain spaces." >&2 exit 1