Invert if condition to make applying changes safer

main
Hammy 3 years ago
parent f4dadf6b95
commit bf62014af9

@ -74,9 +74,9 @@ else
echo "${template_diff}" echo "${template_diff}"
fi fi
echo "Are you happy with your changes? (yes/no)" echo "Are you happy with your changes? Type 'yes' to continue"
read -r input read -r input
if [ "$input" == "no" ]; then if [ "$input" != "yes" ]; then
echo "Exiting..." echo "Exiting..."
exit 1 exit 1
fi fi

Loading…
Cancel
Save