Skip to content

Commit 7049b0d

Browse files
Daniele De Lorenzimbreitung
andauthored
Update support_bundle/get_support_bundle.sh
Co-authored-by: Mark Breitung <mark.breitung@sysdig.com>
1 parent f80ba26 commit 7049b0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

support_bundle/get_support_bundle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ main() {
152152

153153
# If API key is supplied, check the backend version, and send a GET to the relevant endpoints.
154154
if [[ ! -z ${API_KEY} ]]; then
155-
BACKEND_VERSION=$(kubectl ${CONTEXT_OPTS} ${KUBE_OPTS} get deployment sysdigcloud-api -ojsonpath='{.spec.template.spec.containers[0].image}' | awk -F: '{ print $2 }' | awk -F. '{ print $1 }' || true
155+
BACKEND_VERSION=$(kubectl ${CONTEXT_OPTS} ${KUBE_OPTS} get deployment sysdigcloud-api -ojsonpath='{.spec.template.spec.containers[0].image}' | awk -F: '{ print $2 }' | awk -F. '{ print $1 }') || true
156156
if [[ "$BACKEND_VERSION" =~ ^(7|6)$ ]]; then
157157
if [[ "$API_LOCAL" == "true" ]]; then
158158
kubectl ${KUBE_OPTS} port-forward service/sysdigcloud-api 8080 > /dev/null 2>&1 &

0 commit comments

Comments
 (0)