From d2a901416c8cfc792bcb15d1c9a96ea6f5671283 Mon Sep 17 00:00:00 2001 From: Ankitsinghsisodya Date: Wed, 1 Apr 2026 15:59:59 +0530 Subject: [PATCH] hack: remove redundant exit-code check after go run in install.sh 'set -o errexit' is already active, so a non-zero exit from 'go run' terminates the script automatically. The manual '$? -ne 0' check is dead code that adds noise without adding safety. --- hack/install.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hack/install.sh b/hack/install.sh index 5f5e547984a..a2a1d95e46f 100755 --- a/hack/install.sh +++ b/hack/install.sh @@ -22,10 +22,6 @@ set -o nounset set -o pipefail go run "$(dirname "$0")/../test/version_check/check_k8s_version.go" -if [[ $? -ne 0 ]]; then - echo "Kubernetes version check failed. Exiting." - exit 1 -fi export SCALE_CHAOSDUCK_TO_ZERO=1 export REPLICAS=1