From 72e3f9a62f8455a977d76c0c04f02e19983f63cd Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Fri, 31 Jan 2025 21:51:00 +0700 Subject: [PATCH] updated aws_sso_ssh.sh --- aws/aws_sso_ssh.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aws/aws_sso_ssh.sh b/aws/aws_sso_ssh.sh index 1c80944123a..5498e8a2d5b 100755 --- a/aws/aws_sso_ssh.sh +++ b/aws/aws_sso_ssh.sh @@ -104,11 +104,11 @@ 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 @@ -116,4 +116,4 @@ timestamp "SSH'ing to $server" # want splitting # shellcheck disable=SC2086 -exec ssh $SSH_OPTIONS "$server" +exec ssh ${SSH_OPTIONS:-} "$server"