From b00078ce76b81b5063eb5b29d02eb6fa4718dd8e Mon Sep 17 00:00:00 2001 From: tteck Date: Tue, 28 Sep 2021 18:05:30 -0400 Subject: [PATCH] Update mqtt_container.sh --- mqtt_container.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mqtt_container.sh b/mqtt_container.sh index b42668be..ccaf4aaf 100644 --- a/mqtt_container.sh +++ b/mqtt_container.sh @@ -1,5 +1,14 @@ #!/usr/bin/env bash +while true; do + read -p "This will create a New MQTT LXC Container. Proceed(y/n)?" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done + # Setup script environment set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell