change check of salt was upgraded during soup for ubuntu and centos

This commit is contained in:
m0duspwnens
2020-11-17 16:31:11 -05:00
parent 7d1cf56160
commit 2bfc48be35

View File

@@ -461,7 +461,7 @@ fi
echo "Checking if Salt was upgraded." echo "Checking if Salt was upgraded."
echo "" echo ""
# Check that Salt was upgraded # Check that Salt was upgraded
if [[ $(salt --versions-report | grep Salt: | awk {'print $2'}) -eq "$NEWSALTVERSION" ]]; then if [[ $(salt --versions-report | grep Salt: | awk {'print $2'}) == "$NEWSALTVERSION" ]]; then
echo "Salt upgrade failed. Check of indicators of failure in $SOUP_LOG." echo "Salt upgrade failed. Check of indicators of failure in $SOUP_LOG."
echo "Once the issue is resolved, run soup again." echo "Once the issue is resolved, run soup again."
echo "Exiting." echo "Exiting."