From 3a40478e48c96cf752cd6d0a4ff90300312fb0a8 Mon Sep 17 00:00:00 2001 From: Jordan Geoghegan Date: Sun, 26 Jan 2020 02:38:34 +0000 Subject: [PATCH] use "read -r" for correctness in macos-part2.sh --- INSTALL/macos-part2.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/INSTALL/macos-part2.sh b/INSTALL/macos-part2.sh index 37222e50..d159b1ca 100644 --- a/INSTALL/macos-part2.sh +++ b/INSTALL/macos-part2.sh @@ -1,4 +1,3 @@ - #!/bin/bash echo "=========================================================" echo "==!! Shinobi : The Open Source CCTV and NVR Solution !!==" @@ -6,7 +5,7 @@ echo "=================== Mac OS Install Part 2 ===============" echo "=========================================================" echo "Shinobi - Database Installation" echo "(y)es or (N)o" -read mysqlagreeData +read -r mysqlagreeData if [ "$mysqlagreeData" = "y" ]; then echo "Shinobi will now use root for database installation..." sudo mysql -e "source sql/user.sql" || true @@ -42,7 +41,7 @@ echo "=====================================" >> INSTALL/installed.txt echo "=====================================" >> INSTALL/installed.txt echo "Shinobi - Start Shinobi and set to start on boot?" echo "(y)es or (N)o" -read startShinobi +read -r startShinobi if [ "$startShinobi" = "y" ]; then sudo pm2 start camera.js sudo pm2 startup