From 258361b778e9bc5ae57fc322d318caac30b2a5cb Mon Sep 17 00:00:00 2001 From: Thanneer Date: Sat, 3 Oct 2020 04:55:33 +0530 Subject: [PATCH] Fix for #142 This removes all whitespace in db password (denoted by [:space:] in tr) For eg : " test Passw0rd " will be modified to "testPassw0rd" . This removes leading, trailing, and intermediate whitespace in password . --- entrypoint | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint b/entrypoint index 4e6d4ced..b875f67f 100755 --- a/entrypoint +++ b/entrypoint @@ -50,7 +50,8 @@ else DBUSER= fi if [ -n "${DB_PASS}" ]; then - DBPASS="-p${DB_PASS}" + # remove all whitespace in db password (denoted by [:space:] in tr) For eg : " test Passw0rd " will be modified to "testPassw0rd" + DBPASS="-p$(echo ${DB_PASS} | tr -d '[:space:]')" else DBPASS= fi