make install.sh more pretty
This commit is contained in:
@@ -157,7 +157,7 @@ set_service(){
|
|||||||
if [ -f /etc/systemd/system/rpi-mqtt-monitor.service ]; then
|
if [ -f /etc/systemd/system/rpi-mqtt-monitor.service ]; then
|
||||||
read -p "Service file already exists. Do you want to remove it? (y/n) " yn
|
read -p "Service file already exists. Do you want to remove it? (y/n) " yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) sudo rm /etc/systemd/system/rpi-mqtt-monitor.service; break;;
|
[Yy]* ) sudo rm /etc/systemd/system/rpi-mqtt-monitor.service;;
|
||||||
[Nn]* ) return;;
|
[Nn]* ) return;;
|
||||||
* ) echo "Please answer y for yes or n for no.";;
|
* ) echo "Please answer y for yes or n for no.";;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user