]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/rsync-updater/update-to-autobuild.sh
Merge branch 'Mario/confirm_rsync' into 'master'
[xonotic/xonotic.git] / misc / tools / rsync-updater / update-to-autobuild.sh
index b0d429dd2d6fd5c3bd20ba89936ea0e0076cf098..294af5d7815879e27a16bafd8fdd62cbc9aa6c51 100755 (executable)
@@ -9,6 +9,13 @@ if ! which rsync >/dev/null; then
        exit 1
 fi
 
+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)
                buildtype=autobuild