Skip to content

Commit 795227d

Browse files
committed
2.1.7 Fix regression in Bash 5.2
1 parent 7573f21 commit 795227d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssh-oci-bastion.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ if [[ $port ]]; then
153153
--target-resource-id "$OCI_INSTANCE_OCID" --target-port "$port" --session-ttl $MAX_TTL \
154154
--ssh-public-key-file $SSH_PUB_KEY --wait-for-state SUCCEEDED --wait-for-state FAILED \
155155
--wait-interval-seconds $CHECK_INTERVAL_SEC \
156-
| jq --raw-output '.data.resources[0].identifier'
156+
| jq --raw-output '.data.resources[0].identifier' &&
157157
printf "It took:" >&2
158158
)
159159
echo "Created the bastion port forwarding session: $session_ocid"
@@ -188,7 +188,7 @@ if [[ $HOST_USER ]]; then
188188
--target-resource-id "$OCI_INSTANCE_OCID" --target-os-username "$HOST_USER" --session-ttl $MAX_TTL \
189189
--ssh-public-key-file $SSH_PUB_KEY --wait-for-state SUCCEEDED --wait-for-state FAILED \
190190
--wait-interval-seconds $CHECK_INTERVAL_SEC \
191-
| jq --raw-output '.data.resources[0].identifier'
191+
| jq --raw-output '.data.resources[0].identifier' &&
192192
printf "It took:" >&2
193193
)
194194
echo "Created the bastion session: $session_ocid"

0 commit comments

Comments
 (0)