make install.sh more pretty

This commit is contained in:
Hristo
2024-01-28 00:11:17 +02:00
parent 5aeaa9ca13
commit 645a8c0e5d

View File

@@ -157,7 +157,7 @@ set_service(){
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
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;;
* ) echo "Please answer y for yes or n for no.";;
esac