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 Nov 28, 2024
1 parent 735d152 commit d77cec1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aws/aws_sso_ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ if [ "$seconds_ago" -gt 86400 ]; then
exit 1
fi

scp "$creds" "$server":"$creds"
# shellcheck disable=SC2295
creds_without_home="${creds#$HOME}"
creds_without_home="${creds_without_home##/}"

scp "$creds" "$server":"$creds_without_home"

echo >&2

Expand Down

0 comments on commit d77cec1

Please sign in to comment.