Skip to content

Commit

Permalink
2.1.7 Fix regression in Bash 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Korobskiy committed Aug 31, 2023
1 parent 7573f21 commit 795227d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssh-oci-bastion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ if [[ $port ]]; then
--target-resource-id "$OCI_INSTANCE_OCID" --target-port "$port" --session-ttl $MAX_TTL \
--ssh-public-key-file $SSH_PUB_KEY --wait-for-state SUCCEEDED --wait-for-state FAILED \
--wait-interval-seconds $CHECK_INTERVAL_SEC \
| jq --raw-output '.data.resources[0].identifier'
| jq --raw-output '.data.resources[0].identifier' &&
printf "It took:" >&2
)
echo "Created the bastion port forwarding session: $session_ocid"
Expand Down Expand Up @@ -188,7 +188,7 @@ if [[ $HOST_USER ]]; then
--target-resource-id "$OCI_INSTANCE_OCID" --target-os-username "$HOST_USER" --session-ttl $MAX_TTL \
--ssh-public-key-file $SSH_PUB_KEY --wait-for-state SUCCEEDED --wait-for-state FAILED \
--wait-interval-seconds $CHECK_INTERVAL_SEC \
| jq --raw-output '.data.resources[0].identifier'
| jq --raw-output '.data.resources[0].identifier' &&
printf "It took:" >&2
)
echo "Created the bastion session: $session_ocid"
Expand Down

0 comments on commit 795227d

Please sign in to comment.