From 25133371dc50e4ada6a955063d41b9b5e6b001a3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 30 Sep 2022 10:01:35 -0400 Subject: [PATCH] Update zwave-js-ui-update.sh --- misc/zwave-js-ui-update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/misc/zwave-js-ui-update.sh b/misc/zwave-js-ui-update.sh index f45da0f8..70108b55 100644 --- a/misc/zwave-js-ui-update.sh +++ b/misc/zwave-js-ui-update.sh @@ -21,6 +21,16 @@ function error_exit() { echo -e "$flag $msg" 1>&2 exit $EXIT } +clear +while true; do + read -p "This will update ZWave JS UI. Proceed(y/n)?" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done +clear echo -en "${GN} Updating Z-wave JS UI... " systemctl stop zwave-js-ui.service