From d3095297c281830ef4f17c146cc032e052df3734 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Fri, 23 Mar 2018 16:29:05 -0700 Subject: [PATCH] capitalize "y/n" for clearer intent If you press enter, `choice` is an empty string and will default to "no". The convention is to capitalize the default answer so users know what happens when they auto-accept prompts. --- installers/raspberry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/raspberry.sh b/installers/raspberry.sh index ecdcc842..62837d4b 100644 --- a/installers/raspberry.sh +++ b/installers/raspberry.sh @@ -149,7 +149,7 @@ else fi # Use pm2 control like a service MagicMirror -read -p "Do you want use pm2 for auto starting of your MagicMirror (y/n)?" choice +read -p "Do you want use pm2 for auto starting of your MagicMirror (y/N)?" choice if [[ $choice =~ ^[Yy]$ ]]; then sudo npm install -g pm2 sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi"