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:
parent
f80a540dbf
commit
5b7cace9e3
@ -42,7 +42,7 @@ ask_bool() {
|
|||||||
local VAL
|
local VAL
|
||||||
|
|
||||||
echo -n "$* ($defstr): "
|
echo -n "$* ($defstr): "
|
||||||
read VAL
|
read -r VAL
|
||||||
case "$VAL" in
|
case "$VAL" in
|
||||||
y*|Y*) val=0;;
|
y*|Y*) val=0;;
|
||||||
n*|N*) val=1;;
|
n*|N*) val=1;;
|
||||||
|
Loading…
Reference in New Issue
Block a user