From 3a1c478d9a3e9f0415eeae9f5e8fe5fbb1c94f11 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Mon, 5 Apr 2021 16:56:34 -0400 Subject: [PATCH] compare the new var --- 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 eda93fc1f..9036d83bb 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -655,7 +655,7 @@ if [[ "." =~ .*"$SALTVERSIONPOSTUPGRADE".* ]]; then else SALTVERSIONPOSTUPGRADE="${SALTVERSIONPOSTUPGRADE}.1" fi -if [[ $(salt --versions-report | grep Salt: | awk {'print $2'}) != "$NEWSALTVERSION" ]]; then +if [[ "$SALTVERSIONPOSTUPGRADE" != "$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."