Use "read -r" to get the verbatim input, suggested by shellcheck
authorAntonio Ospite <ao2@ao2.it>
Mon, 18 Dec 2017 15:02:06 +0000 (16:02 +0100)
committerAntonio Ospite <ao2@ao2.it>
Mon, 18 Dec 2017 15:02:06 +0000 (16:02 +0100)
libexec/bootstrap.sh
libexec/clean.sh

index 2381d29..1dee4f2 100755 (executable)
@@ -75,7 +75,7 @@ declare -p WEB_SERVER_GROUP
 
 if [ "x$MYSQL_ROOT_PASSWORD" = "x" ];
 then
 
 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
 
   echo
 fi
 
index daa86fb..cd33b60 100755 (executable)
@@ -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
 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 "$@"
 
 run() {
   echo "$@"