compare the new var

This commit is contained in:
m0duspwnens committed 2021-04-05 16:56:34 -04:00
1 parent 89f72bb6ed
commit 3a1c478d9a
1 file changed
+1 -1
+1 -1
View File
@@ -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."