Skip to content

Commit bebaca1

Browse files
dastgirpjanisz
andauthored
Fixed shellcheck lint for k8s/cleanup.sh (#3552)
Co-authored-by: Tomasz Janiszewski <tomek@redhat.com>
1 parent 610f36b commit bebaca1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

scripts/k8s/cleanup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
NAMESPACE="${NAMESPACE:-stackrox}"
44

5-
kubectl delete namespace ${NAMESPACE} || true
5+
kubectl delete namespace "${NAMESPACE}" || true
66

77
NAMESPACE_GONE=1
88
until [ $NAMESPACE_GONE -eq 0 ]
99
do
10-
NAMESPACE_GONE=$(kubectl get namespaces -o json | jq .items[].status.phase | grep "Terminating" | wc -l)
10+
NAMESPACE_GONE=$(kubectl get namespaces -o json | jq .items[].status.phase | grep -c "Terminating")
1111
echo -en "\rTerminating StackRox namespace.... "
1212
sleep 1
1313
done

scripts/style/shellcheck_skip.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ scripts/ci/sensorbundle-label/list-resources.sh
6868
scripts/connect-ui.sh
6969
scripts/ensure_image.sh
7070
scripts/grab-data-from-central.sh
71-
scripts/k8s/cleanup.sh
7271
scripts/k8s/kill-pod.sh
7372
scripts/k8s/local-port-forward.sh
7473
scripts/mergeswag.sh

0 commit comments

Comments
 (0)