convention Y/n

This commit is contained in:
serinko
2025-11-14 12:43:54 +01:00
parent 9bdd2af14c
commit 10707fd2c5
@@ -83,8 +83,8 @@ fi
# interactive path (manual runs)
ensure_mode
read -rp "Service file not found. Create it now? (y/n): " create_ans
if [[ "${create_ans:-}" =~ ^[Yy]$ ]]; then
read -rp "Service file not found. Create it now? (Y/n): " create_ans
if [[ -z "${create_ans}" || "${create_ans}" =~ ^[Yy]$ ]]; then
create_service_file
else
echo "Not creating the service file."