]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Merge branch 'Mario/confirm_rsync' into 'master'
authorMario <mario.mario@y7mail.com>
Thu, 10 Dec 2020 01:04:25 +0000 (01:04 +0000)
committerMario <mario.mario@y7mail.com>
Thu, 10 Dec 2020 01:04:25 +0000 (01:04 +0000)
Merge branch Mario/confirm_rsync (XS merge request)

Closes #148

See merge request xonotic/xonotic!73

misc/tools/rsync-updater/update-to-autobuild.bat [changed mode: 0644->0755]
misc/tools/rsync-updater/update-to-autobuild.sh
misc/tools/rsync-updater/update-to-release.bat [changed mode: 0644->0755]
misc/tools/rsync-updater/update-to-release.sh

old mode 100644 (file)
new mode 100755 (executable)
index 911628c..498e2af
@@ -10,6 +10,9 @@ exit
 \r
 :copied\r
 \r
+set /p choice=This script will DELETE any custom files in the Xonotic folder. Do you want to continue [Y/N]?\r
+if /i not "%choice%" == "Y" goto end\r
+\r
 set buildtype=release\r
 if "%~n0" == "update-to-autobuild" set buildtype=autobuild\r
 \r
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
old mode 100644 (file)
new mode 100755 (executable)
index 911628c..498e2af
@@ -10,6 +10,9 @@ exit
 \r
 :copied\r
 \r
+set /p choice=This script will DELETE any custom files in the Xonotic folder. Do you want to continue [Y/N]?\r
+if /i not "%choice%" == "Y" goto end\r
+\r
 set buildtype=release\r
 if "%~n0" == "update-to-autobuild" set buildtype=autobuild\r
 \r
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