Fix conditional.
This commit is contained in:
parent
8df0022f2d
commit
40818dacf6
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ packages=${@:2}
|
||||||
echo -n "* Validating action arguments... ";
|
echo -n "* Validating action arguments... ";
|
||||||
|
|
||||||
echo $version | grep -o " " > /dev/null
|
echo $version | grep -o " " > /dev/null
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "aborted."
|
echo "aborted."
|
||||||
echo "* Version value '$version' cannot contain spaces." >&2
|
echo "* Version value '$version' cannot contain spaces." >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue