From a69d9dbc80dfaa0fc3eef3b5ac48e1c2a25fa08b Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Thu, 21 Oct 2021 12:11:34 +0200 Subject: :lipstick: Make cursor show when user input is requested --- bin/install.sh | 2 ++ bin/uninstall.sh | 2 ++ 2 files changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/install.sh b/bin/install.sh index cabd6bf..f57eff1 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -127,11 +127,13 @@ execCommand "mkdir -p \"/var/log/luxcena-neo\"" execCommand "chown $username:$username \"/var/log/luxcena-neo\"" # Choose branch to install +TPUT cnorm printf '\n%s' "Which branch do you want to install (default: master)? " read BRANCH if [ -z "$BRANCH" ]; then BRANCH="master" fi +TPUT civis # Get source code header "Fetch source code" diff --git a/bin/uninstall.sh b/bin/uninstall.sh index 2b3f41e..ee8a5a2 100755 --- a/bin/uninstall.sh +++ b/bin/uninstall.sh @@ -102,6 +102,7 @@ function execCommand() { function dlgYN() { TPUT sc TPUT setaf 4 + TPUT cnorm printf "$1 (y/n)? " while : do @@ -127,6 +128,7 @@ printf "By uninstalling Luxcena-Neo you might loose all data, including your scr dlgYN "Are you sure you want to uninstall?" res if [ $res -eq 1 ]; then + TPUT civis header "Stop systemd service" execCommand "systemctl stop luxcena-neo" -- cgit v1.2.3