fix confirmation prompt

This commit is contained in:
Maximilian Keßler 2023-10-19 13:55:05 +02:00
parent 76038332f4
commit c730597f98
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -32,9 +32,10 @@ URL="https://git.abstractnonsen.se/${OWNER}/${REPOSITORY}"
if curl --output /dev/null --silent --head --fail "${URL}"; then if curl --output /dev/null --silent --head --fail "${URL}"; then
echo "Checked ${URL}: repository exists and publicly accessible" echo "Checked ${URL}: repository exists and publicly accessible"
else 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 echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Aborted."
exit 1 exit 1
fi fi
fi fi