wording and exit code

This commit is contained in:
Michael 2020-12-26 23:34:54 +00:00
parent 4e8d4dfd8e
commit f3eddccee8

View file

@ -68,7 +68,7 @@ for CLIENT_NAME in "${CLIENTS_TO_REMOVE[@]}"; do
echo -e "::: \e[1m${CLIENT_NAME}\e[0m does not exist" echo -e "::: \e[1m${CLIENT_NAME}\e[0m does not exist"
else else
REQUESTED="$(sha256sum "configs/${CLIENT_NAME}.conf" | cut -c 1-64)" REQUESTED="$(sha256sum "configs/${CLIENT_NAME}.conf" | cut -c 1-64)"
read -r -p "Do you really want to delete $CLIENT_NAME? [Y/n] " read -r -p "Do you really want to delete $CLIENT_NAME? [y/N] "
if [[ $REPLY =~ ^[Yy]$ ]]; then if [[ $REPLY =~ ^[Yy]$ ]]; then
@ -115,6 +115,9 @@ for CLIENT_NAME in "${CLIENTS_TO_REMOVE[@]}"; do
fi fi
fi fi
else
echo "Aborting operation"
exit 1
fi fi
fi fi