]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Add yes/no dialogs to the update scripts, fixes #148
authorMario <zacjardine@y7mail.com>
Tue, 8 Dec 2020 06:45:07 +0000 (16:45 +1000)
committerMario <zacjardine@y7mail.com>
Tue, 8 Dec 2020 06:45:07 +0000 (16:45 +1000)
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..4c66cb58f3751a483a55d58df976fa0dcefefc22 100755 (executable)
@@ -9,6 +9,9 @@ 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
+
 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..4c66cb58f3751a483a55d58df976fa0dcefefc22 100755 (executable)
@@ -9,6 +9,9 @@ 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
+
 case "${0##*/}" in
        update-to-autobuild.sh)
                buildtype=autobuild