Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
=====================================================================

--- Bug Fixes ----------------------------

- rds/interactive-login now escapes special password characters
  • Loading branch information
wrynegade committed Jul 30, 2022
1 parent db0d009 commit f7eec63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zsh/aws/rds/interactive-login
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ __CONNECT_TO_RDS() {
secretsmanager )
CREDENTIALS=$(__GET_SECRETSMANAGER_CREDENTIALS)
echo $CREDENTIALS | jq -e '.pass' >/dev/null 2>&1 \
&& DB_AUTH=$(echo $CREDENTIALS | jq -r '.pass')
&& DB_AUTH="'$(echo $CREDENTIALS | jq -r '.pass' | sed "s/'/'\"'\"'/g")'"

echo $CREDENTIALS | jq -e '.password' >/dev/null 2>&1 \
&& DB_AUTH=$(echo $CREDENTIALS | jq -r '.password')
&& DB_AUTH="'$(echo $CREDENTIALS | jq -r '.password' | sed "s/'/'\"'\"'/g")'"

echo $CREDENTIALS | jq -e '.user' >/dev/null 2>&1 \
&& DB_USER=$(echo $CREDENTIALS | jq -r '.user')
Expand Down

0 comments on commit f7eec63

Please sign in to comment.