From e3c01ef7dcc061cd030637903664291f08884653 Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Wed, 13 Sep 2023 03:46:01 +0200 Subject: [PATCH] Update 'Installer.sh' Fixed timer end --- Installer.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Installer.sh b/Installer.sh index cbc0f2d..d18a502 100644 --- a/Installer.sh +++ b/Installer.sh @@ -578,6 +578,13 @@ sed -i -e "s/%name%/$NAME/g" /etc/profile.d/greeting.sh mkdir -p /opt/backups/timestamps/ echo "Installed on: $DATE" > /opt/backups/timestamps/OS.update +if [[ $Timer == "yes" ]]; then + timewhendone=$(date +"%T") + echo "Setup started at: $timewhenstarted" + echo "Setup finished at: $timewhendone" + read -p "Press enter to continue" +fi + if [[ $OPTIONS == *"Zigbee2MQTT"* ]]; then whiptail --title "Done!" --msgbox "Please insert the Zigbee Dongle into a USB 2.0 port. Press OK to continue." 8 78 fi @@ -599,13 +606,6 @@ if [[ $OPTIONS == *"Homer"* ]]; then fi fi -if [[ $Timer == "yes" ]]; then - timewhendone=$(date +"%T") - echo "Setup started at: $timewhenstarted" - echo "Setup finished at: $timewhendone" - read -p "Press enter to continue" -fi - if grep -q "ssid=" /etc/wpa_supplicant/wpa_supplicant.conf then whiptail --title "Done!" --msgbox "The Raspberry Pi will shutdown,\nplease remove the LAN cable before starting up again.\n\nPress OK to continue." 10 78