From bf62014af9dc59f4a90fe03149e3bc9120cc64c3 Mon Sep 17 00:00:00 2001 From: Hammy Date: Mon, 30 Aug 2021 18:28:54 +0100 Subject: [PATCH] Invert if condition to make applying changes safer --- stacks/apply-stacks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stacks/apply-stacks.sh b/stacks/apply-stacks.sh index 396f4ff..587d8a9 100644 --- a/stacks/apply-stacks.sh +++ b/stacks/apply-stacks.sh @@ -74,9 +74,9 @@ else echo "${template_diff}" fi - echo "Are you happy with your changes? (yes/no)" + echo "Are you happy with your changes? Type 'yes' to continue" read -r input - if [ "$input" == "no" ]; then + if [ "$input" != "yes" ]; then echo "Exiting..." exit 1 fi