From 6bc7c74e4c99280f488a59204f5ab40a9f39167b Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 18 Dec 2017 16:02:06 +0100 Subject: [PATCH 1/1] Use "read -r" to get the verbatim input, suggested by shellcheck --- libexec/bootstrap.sh | 2 +- libexec/clean.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/bootstrap.sh b/libexec/bootstrap.sh index 2381d29..1dee4f2 100755 --- a/libexec/bootstrap.sh +++ b/libexec/bootstrap.sh @@ -75,7 +75,7 @@ declare -p WEB_SERVER_GROUP if [ "x$MYSQL_ROOT_PASSWORD" = "x" ]; then - read -s -p "MySQL root password: " MYSQL_ROOT_PASSWORD + read -r -s -p "MySQL root password: " MYSQL_ROOT_PASSWORD echo fi diff --git a/libexec/clean.sh b/libexec/clean.sh index daa86fb..cd33b60 100755 --- a/libexec/clean.sh +++ b/libexec/clean.sh @@ -48,7 +48,7 @@ CONFIRMATION_STRING="YESIAMSURE" echo "WARNING! This removes any files in the config/ web/ and vendor/ directories." echo "Are you sure you want to continue?" echo -read -p "Type ${CONFIRMATION_STRING} to confirm: " INPUT +read -r -p "Type ${CONFIRMATION_STRING} to confirm: " INPUT run() { echo "$@" -- 2.1.4