mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
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.
This commit is contained in:
parent
20823bfc87
commit
d3095297c2
@ -149,7 +149,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Use pm2 control like a service MagicMirror
|
# 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
|
if [[ $choice =~ ^[Yy]$ ]]; then
|
||||||
sudo npm install -g pm2
|
sudo npm install -g pm2
|
||||||
sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi"
|
sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user