Skip to content

Commit

Permalink
updated aws_sso_ssh.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Jan 31, 2025
1 parent 6ee2cd4 commit 72e3f9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/aws_sso_ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ timestamp "Copying AWS SSO credential cache to $server"
# the first time on a new EC2 VM this will fail without pre-creating the directories
# want splitting and evaluation on client side
# shellcheck disable=SC2086,SC2029
ssh $SSH_OPTIONS "$server" "mkdir -pv $creds_homepath"
ssh ${SSH_OPTIONS:-} "$server" "mkdir -pv $creds_homepath"

# want splitting
# shellcheck disable=SC2086
scp $SSH_OPTIONS "$creds" "$server":"$creds_homepath"
scp ${SSH_OPTIONS:-} "$creds" "$server":"$creds_homepath"

echo >&2

timestamp "SSH'ing to $server"

# want splitting
# shellcheck disable=SC2086
exec ssh $SSH_OPTIONS "$server"
exec ssh ${SSH_OPTIONS:-} "$server"

0 comments on commit 72e3f9a

Please sign in to comment.