scripts/env: use read -r instead of read

read mangles backslashes.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-01-05 18:32:38 -08:00 committed by Petr Štetiar
parent f80a540dbf
commit 5b7cace9e3

View File

@ -42,7 +42,7 @@ ask_bool() {
local VAL
echo -n "$* ($defstr): "
read VAL
read -r VAL
case "$VAL" in
y*|Y*) val=0;;
n*|N*) val=1;;