From f7eec633ef0799c9ea7c468a443d122b0a30973c Mon Sep 17 00:00:00 2001 From: yage Date: Sat, 30 Jul 2022 11:02:47 -0600 Subject: [PATCH] v2.0.3 ===================================================================== --- Bug Fixes ---------------------------- - rds/interactive-login now escapes special password characters --- zsh/aws/rds/interactive-login | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/aws/rds/interactive-login b/zsh/aws/rds/interactive-login index 88bbea0..80d262f 100755 --- a/zsh/aws/rds/interactive-login +++ b/zsh/aws/rds/interactive-login @@ -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')