diff --git a/hack/destroy-infrastructure.sh b/hack/destroy-infrastructure.sh index 6a2342870..4597dcd6f 100644 --- a/hack/destroy-infrastructure.sh +++ b/hack/destroy-infrastructure.sh @@ -14,7 +14,7 @@ aws eks describe-cluster --name "${EKS_CLUSTER_NAME}" &> /dev/null || cluster_ex if [ $cluster_exists -eq 0 ]; then echo "Deleting cluster ${EKS_CLUSTER_NAME}" - bash $SCRIPT_DIR/shell.sh "${environment}" 'delete-environment || true' + bash $SCRIPT_DIR/shell.sh "${environment}" 'delete-environment' || true bash $SCRIPT_DIR/exec.sh "${environment}" 'eksctl delete cluster --name ${EKS_CLUSTER_NAME} --region ${AWS_REGION} --wait --force --disable-nodegroup-eviction --timeout 45m' else