commit 9ce7fe6dde58b37880dfbf5b607b72ea4ddc981c
parent fcf7d9e1795414b91259cc33cbabd6e8fb4339f5
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 24 Apr 2023 12:26:15 +0200
use printf
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/netzbon/main.sh b/netzbon/main.sh
@@ -57,7 +57,7 @@ if test -z "${MASTER_PUBLIC_KEY:-}"; then
fi
if test -z "${SANDBOX_ADMIN_PASSWORD:-}"; then
read -r -s -p "Enter the admin password for the bank: " SANDBOX_ADMIN_PASSWORD
- echo "SANDBOX_ADMIN_PASSWORD=\"${SANDBOX_ADMIN_PASSWORD}\"" >>config/user.conf
+ echo "SANDBOX_ADMIN_PASSWORD=$(printf '%q' "${SANDBOX_ADMIN_PASSWORD}") >>config/user.conf
echo "" # force new line
fi
if test -z "${DOMAIN_NAME:-}"; then