fix attempts logic

This commit is contained in:
m0duspwnens
2023-10-20 13:40:40 -04:00
parent 2878f82754
commit ef2b89f5bf

View File

@@ -2500,7 +2500,7 @@ wait_for_salt_minion() {
local maxAttempts=20
until check_salt_minion_status; do
attempt=$((attempt+1))
if [[ $attempt -gt $maxAttempts ]]; then
if [[ $attempt -eq $maxAttempts ]]; then
fail_setup
fi
sleep 10