From 8e79577e45b79e88343acbb72f96bdfefb0ad722 Mon Sep 17 00:00:00 2001 From: Cole Rominger Date: Wed, 22 Jan 2020 11:55:52 -0700 Subject: [PATCH] Escape POSIX shell special characters in FIRST_USER_PASS --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 9e78728..dcd666e 100755 --- a/build.sh +++ b/build.sh @@ -165,6 +165,7 @@ export LOG_FILE="${WORK_DIR}/build.log" export HOSTNAME=${HOSTNAME:-raspberrypi} export FIRST_USER_NAME=${FIRST_USER_NAME:-pi} +FIRST_USER_PASS="$(printf "%q" "$FIRST_USER_PASS")" export FIRST_USER_PASS=${FIRST_USER_PASS:-raspberry} export WPA_ESSID export WPA_PASSWORD