Fix 'too many arguments' error
Fix error: "/tmp/yum_update.sh: line 17: [: too many arguments" when upgrading packages in container Change-Id: I159ee948b541adf281263696447608f3b6286505
This commit is contained in:
parent
40521eeff1
commit
678b93fe30
|
@ -14,7 +14,7 @@ if [ -n "$1" ] && command -v repoquery >/dev/null 2>&1; then
|
|||
packages_for_update=("$(repoquery --disablerepo='*' --enablerepo=$1 --qf %{NAME} -a)")
|
||||
fi
|
||||
|
||||
if [ -z $packages_for_update ]; then
|
||||
if [ -z "$packages_for_update" ]; then
|
||||
echo "No packages were found for update..."
|
||||
exit
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue