Escape POSIX shell special characters in FIRST_USER_PASS

This commit is contained in:
Cole Rominger 2020-01-22 11:55:52 -07:00
parent f8f3d6fe93
commit 8e79577e45

View File

@ -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