From 752d253ad3d6a2aca340a5daf184eb8ecb506019 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 18 Feb 2022 14:06:34 -0500 Subject: [PATCH] Add files via upload --- misc/node-red-dark.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/misc/node-red-dark.sh b/misc/node-red-dark.sh index f0393226..813f1e10 100644 --- a/misc/node-red-dark.sh +++ b/misc/node-red-dark.sh @@ -1,5 +1,14 @@ #!/usr/bin/env bash # bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/node-red-dark.sh)" +while true; do + read -p "This will install midnight-red theme. Proceed(y/n)?" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done + set -o errexit set -o errtrace set -o nounset @@ -74,9 +83,8 @@ EOF echo -e "${CM}${CL} \r" echo -en "${GN} Restarting Node-Red... " -node-red-restart echo -e "${CM}${CL} \r" - +node-red-restart echo -en "${GN} Finished... ${CL} \n" exit