mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-03-04 18:37:34 +00:00
Require inputting Y to confirm in the Linux script as well, courtesy of Cloudwalk
This commit is contained in:
parent
bf34e83072
commit
fcc2ceaf75
@ -9,8 +9,12 @@ if ! which rsync >/dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo >&2 "This script will DELETE any custom files in the Xonotic folder. Press ENTER to continue, or Ctrl-C to abort."
|
||||
read -r DUMMY
|
||||
read -rp "This script will DELETE any custom files in the Xonotic folder. Do you want to continue [Y/N]?" choice
|
||||
case "$choice" in
|
||||
Y) ;;
|
||||
y) ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
|
||||
case "${0##*/}" in
|
||||
update-to-autobuild.sh)
|
||||
|
@ -9,8 +9,12 @@ if ! which rsync >/dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo >&2 "This script will DELETE any custom files in the Xonotic folder. Press ENTER to continue, or Ctrl-C to abort."
|
||||
read -r DUMMY
|
||||
read -rp "This script will DELETE any custom files in the Xonotic folder. Do you want to continue [Y/N]?" choice
|
||||
case "$choice" in
|
||||
Y) ;;
|
||||
y) ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
|
||||
case "${0##*/}" in
|
||||
update-to-autobuild.sh)
|
||||
|
Loading…
Reference in New Issue
Block a user