From c730597f986b995eac5534d28a1d6a2497cb9f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 19 Oct 2023 13:55:05 +0200 Subject: [PATCH] fix confirmation prompt --- setup-key.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup-key.sh b/setup-key.sh index 1d98955..a3f88d5 100755 --- a/setup-key.sh +++ b/setup-key.sh @@ -32,9 +32,10 @@ URL="https://git.abstractnonsen.se/${OWNER}/${REPOSITORY}" if curl --output /dev/null --silent --head --fail "${URL}"; then echo "Checked ${URL}: repository exists and publicly accessible" else - read -p -n 1 -r "Url ${URL} is not (publicly) accessible, are you sure you want to continue? [y/N] " + read -n 1 -r -p "Url ${URL} is not (publicly) accessible, are you sure you want to continue? [y/N] " echo if [[ ! $REPLY =~ ^[Yy]$ ]]; then + echo "Aborted." exit 1 fi fi