Skip to content

Commit

Permalink
Quote variables for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
amisstea authored and chmeliik committed Jun 19, 2024
1 parent 3e063b9 commit 45bc830
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ spec:
trap 'rm -f "$KUBECONFIG"' EXIT
echo "$KUBECONFIG_VALUE" > $KUBECONFIG
OC=(oc --insecure-skip-tls-verify=$INSECURE_SKIP_TLS_VERIFY)
SV=$(${OC[*]} get configmap supported-versions -n hypershift -o=jsonpath='{.data.supported-versions}')
VERSIONS=$(echo "$SV" | jq -c '.versions')
OC=(oc --insecure-skip-tls-verify="$INSECURE_SKIP_TLS_VERIFY")
SV=$("${OC[@]}" get configmap supported-versions -n hypershift -o=jsonpath='{.data.supported-versions}')
VERSIONS=$(jq -c '.versions' <<< "$SV")
echo "Supported versions: $VERSIONS"
echo -n "$VERSIONS" > $(step.results.versions.path)

0 comments on commit 45bc830

Please sign in to comment.