Skip to content

Commit

Permalink
Handle CRLF when retrieving fastboot variables
Browse files Browse the repository at this point in the history
  • Loading branch information
roliver-rpi committed Dec 4, 2024
1 parent 2a3277e commit a995e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/rpi-sb-provisioner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ check_command_exists blockdev
check_command_exists grep

get_variable() {
[ -z "${DEMO_MODE_ONLY}" ] && fastboot getvar "$1" 2>&1 | grep -oP "${1}"': \K.*'
[ -z "${DEMO_MODE_ONLY}" ] && fastboot getvar "$1" 2>&1 | grep -oP "${1}"': \K[^\r\n]*'
}

TMP_DIR=$(mktemp -d)
Expand Down

0 comments on commit a995e43

Please sign in to comment.