mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Fix conditional.
This commit is contained in:
parent
8df0022f2d
commit
40818dacf6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue