Skip to content

Commit

Permalink
Fixed space issue on username
Browse files Browse the repository at this point in the history
  • Loading branch information
bayrakmustafa committed May 20, 2024
1 parent a670fec commit 7e736b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ COMMAND="$COMMAND ${CMD[@]}"

# Authentication Info
if [[ ! "${CMD[@]}" =~ .*"--help".* ]]; then
[ ! -z $USERNAME ] && COMMAND="$COMMAND -username=$(echo $USERNAME | awk '{gsub( /[(`$)]/, "\\\\&"); print $0}')"
[ ! -z $PASSWORD ] && COMMAND="$COMMAND -password=$(echo $PASSWORD | awk '{gsub( /[(`$)]/, "\\\\&"); print $0}')"
[ ! -z "$USERNAME" ] && COMMAND="$COMMAND -username=$(echo $USERNAME | awk '{gsub( /[(`$)]/, "\\\\&"); print $0}')"
[ ! -z "$PASSWORD" ] && COMMAND="$COMMAND -password=$(echo $PASSWORD | awk '{gsub( /[(`$)]/, "\\\\&"); print $0}')"

if [[ ! "${CMD[@]}" =~ .*"get_credential_ids".* ]]; then
[ ! -z $CREDENTIAL_ID ] && COMMAND="${COMMAND} -credential_id=${CREDENTIAL_ID}"
Expand Down

0 comments on commit 7e736b2

Please sign in to comment.