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}"
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

Loading…
Cancel
Save