From bca80b37cddf89812d5520d69fcfd376a3f7ee47 Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Thu, 30 Aug 2018 11:49:52 +0300 Subject: [PATCH] Fix type in variable which blocked updates Containers haven't been updated because of typo in variable name Change-Id: Ie3d82368be4cf8030fe7393f7f70d44cd7bd77f7 --- files/yum_update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/yum_update.sh b/files/yum_update.sh index 5156c4f..3a90f04 100755 --- a/files/yum_update.sh +++ b/files/yum_update.sh @@ -1,6 +1,6 @@ #!/bin/sh -set -ex +set -eux if [ -f /tmp/host_packages.json ]; then if /tmp/compare-package-json.py < /tmp/host_packages.json ; then @@ -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 $package_for_update ]; then +if [ -z $packages_for_update ]; then echo "No packages were found for update..." exit fi