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