From: Antonio Ospite Date: Mon, 18 Dec 2017 15:02:06 +0000 (+0100) Subject: Use "read -r" to get the verbatim input, suggested by shellcheck X-Git-Tag: v0.1.0~6 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/6bc7c74e4c99280f488a59204f5ab40a9f39167b?hp=9892c3f6d1345adc99b1485cb29962852ddfe37f Use "read -r" to get the verbatim input, suggested by shellcheck --- 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 "$@"