diff --git a/ct/saltstack.sh b/ct/saltstack.sh index 6550348..4d10d15 100644 --- a/ct/saltstack.sh +++ b/ct/saltstack.sh @@ -25,19 +25,8 @@ function update_script() { check_container_resources if [[ ! -d /etc/salt ]]; then - while true; do - read -p "This will install ${APP} on $hostname. Proceed (y/n)? " yn - case $yn in - [Yy]*) break ;; - [Nn]*) - echo "No ${APP} installation found!" - exit 1 - ;; - *) - echo "Please answer yes or no." - ;; - esac - done + msg_error "No ${APP} Installation Found!" + exit fi RELEASE=$(curl -fsSL https://api.github.com/repos/saltstack/salt/releases/latest | jq -r .tag_name | sed 's/^v//')