From 7d1cf56160cc37bbfb92dd7683611566f710f8a1 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 17 Nov 2020 16:29:35 -0500 Subject: [PATCH] change check of salt was upgraded during soup for ubuntu and centos --- salt/common/tools/sbin/soup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index df2776fee..73432d5f1 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -461,7 +461,7 @@ fi echo "Checking if Salt was upgraded." echo "" # Check that Salt was upgraded -if [[ `salt --versions-report | grep Salt: | awk {'print $2'}` == "$NEWSALTVERSION" ]]; then +if [[ $(salt --versions-report | grep Salt: | awk {'print $2'}) -eq "$NEWSALTVERSION" ]]; then echo "Salt upgrade failed. Check of indicators of failure in $SOUP_LOG." echo "Once the issue is resolved, run soup again." echo "Exiting."