diff --git a/modules/kube-audit/scripts/set_audit_log_policy.sh b/modules/kube-audit/scripts/set_audit_log_policy.sh index b4dc2030..c82d77b3 100755 --- a/modules/kube-audit/scripts/set_audit_log_policy.sh +++ b/modules/kube-audit/scripts/set_audit_log_policy.sh @@ -27,7 +27,7 @@ function apply_oc_patch() { else echo "Failed to apply patch. Retrying in ${RETRY_WAIT}s..." sleep $RETRY_WAIT - ((attempt++)) + attempt=$((attempt+1)) RETRY_WAIT=$((RETRY_WAIT * 2)) fi done diff --git a/scripts/enable_disable_ocp_console.sh b/scripts/enable_disable_ocp_console.sh index 6b5eb994..c35a85e4 100755 --- a/scripts/enable_disable_ocp_console.sh +++ b/scripts/enable_disable_ocp_console.sh @@ -28,7 +28,7 @@ function apply_oc_patch() { else echo "Failed to apply patch. Retrying in ${retry_wait_time}s..." sleep $retry_wait_time - ((attempt++)) + attempt=$((attempt+1)) fi done @@ -50,7 +50,7 @@ function remove_oc_patch() { else echo "Failed to remove patch. Retrying in ${retry_wait_time}s..." sleep $retry_wait_time - ((attempt++)) + attempt=$((attempt+1)) fi done diff --git a/scripts/reset_iks_api_key.sh b/scripts/reset_iks_api_key.sh index 6be9fcfe..0fda79ee 100755 --- a/scripts/reset_iks_api_key.sh +++ b/scripts/reset_iks_api_key.sh @@ -107,7 +107,7 @@ if [ "${reset}" == true ]; then echo "ERROR:: FAILED TO RESET THE IAM API KEY" echo "$result" sleep $retry_wait_time - ((attempt++)) + attempt=$((attempt+1)) fi # sleep for 10 secs to allow the new key to be replicated across backend DB instances before attempting to create cluster done