aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-01-05 18:32:38 -0800
committerPetr Štetiar <ynezz@true.cz>2020-07-11 13:33:28 +0200
commit5b7cace9e3f553ca54e1e0ec5f7651b7d7a2052d (patch)
treeadf51a7160586d78d25f725bec0d3a8cb705e529
parentf80a540dbf9bf87e15f0f29da7f4019064ee207d (diff)
downloadupstream-5b7cace9e3f553ca54e1e0ec5f7651b7d7a2052d.tar.gz
upstream-5b7cace9e3f553ca54e1e0ec5f7651b7d7a2052d.tar.bz2
upstream-5b7cace9e3f553ca54e1e0ec5f7651b7d7a2052d.zip
scripts/env: use read -r instead of read
read mangles backslashes. Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rwxr-xr-xscripts/env2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/env b/scripts/env
index 848850a778..c81fbf8ddc 100755
--- a/scripts/env
+++ b/scripts/env
@@ -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;;