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:
Sagi Shnaidman 2018-09-03 11:30:03 +03:00
parent 40521eeff1
commit 678b93fe30
1 changed files with 1 additions and 1 deletions

View File

@ -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