fix confirmation prompt
This commit is contained in:
parent
76038332f4
commit
c730597f98
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue