updated install script

This commit is contained in:
CarstenArend
2025-09-03 13:09:14 +02:00
parent aac69b38dd
commit 1f3befa654

View File

@@ -28,6 +28,7 @@ if [ $? -ne 0 ]
exit exit
fi fi
unzip -q master.zip unzip -q master.zip
rm master.zip
cd zeroplc-installer cd zeroplc-installer
sleep 1 sleep 1
@@ -101,7 +102,7 @@ echo "#################################################################"
sleep 1 sleep 1
while true; do while true; do
read -p "Do you want to intall the zeroPLCgui for simple testing of hardware functions? (yes/no) " yn read -p "Do you want to intall the zeroPLCgui for simple testing of hardware functions? (yes/no) " yn < /dev/tty
case $yn in case $yn in
yes ) echo Starting zeroPLCgui installation to zeroPLCgui folder in home directory; yes ) echo Starting zeroPLCgui installation to zeroPLCgui folder in home directory;
break;; break;;
@@ -109,7 +110,8 @@ case $yn in
rm -r /home/$SUDO_USER/zeroplc-installer; rm -r /home/$SUDO_USER/zeroplc-installer;
echo Exiting installer, please reboot the system; echo Exiting installer, please reboot the system;
exit;; exit;;
* ) echo invalid response;; * ) echo invalid response;
sleep 1;;
esac esac
done done