From 8b4f677fbfb5e5d5c0b4dad1114bb4c0f407bf25 Mon Sep 17 00:00:00 2001 From: Jordan Geoghegan Date: Sun, 26 Jan 2020 02:35:49 +0000 Subject: [PATCH] Use "read -r" for correctness --- INSTALL/macos.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/INSTALL/macos.sh b/INSTALL/macos.sh index e8621b3a..ee62ebb4 100644 --- a/INSTALL/macos.sh +++ b/INSTALL/macos.sh @@ -8,7 +8,7 @@ echo "Default is no (N). Skip any components you already have or don't need." echo "=============" echo "Shinobi - Do you want to Install Node.js?" echo "(y)es or (N)o" -read nodejsinstall +read -r nodejsinstall if [ "$nodejsinstall" = "y" ]; then curl -o node-installer.pkg https://nodejs.org/dist/v11.9.0/node-v11.9.0.pkg sudo installer -pkg node-installer.pkg -target / @@ -18,7 +18,7 @@ fi echo "=============" echo "Shinobi - Do you want to Install FFmpeg?" echo "(y)es or (N)o" -read ffmpeginstall +read -r ffmpeginstall if [ "$ffmpeginstall" = "y" ]; then echo "Shinobi - Installing FFmpeg" curl -o ffmpeg.zip https://cdn.shinobi.video/installers/ffmpeg-3.4.1-macos.zip @@ -65,7 +65,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 pm2 start camera.js pm2 startup