Commit e856e0a5 authored by Steffen Jaeckel's avatar Steffen Jaeckel

fixed the installer in msysgit environment to work with windows XP

as the command 'choice' is not available on Windows XP we have to work around
this issue by usage of 'set /p'
parent 72594ea4
...@@ -22,11 +22,11 @@ echo getopt.exe... Found ...@@ -22,11 +22,11 @@ echo getopt.exe... Found
if not exist "%GIT_HOME%\bin\git-flow" goto :Install if not exist "%GIT_HOME%\bin\git-flow" goto :Install
echo GitFlow is already installed.>&2 echo GitFlow is already installed.>&2
choice /C YN /M "Do you want to replace it" set /p mychoice="Do you want to replace it [y/n]"
if errorlevel 255 goto :Abort if "%mychoice%"=="y" goto :DeleteOldFiles
if errorlevel 2 goto :Abort goto :Abort
if not errorlevel 1 goto :Abort
:DeleteOldFiles
echo Deleting old files... echo Deleting old files...
for /F %%i in ("%GIT_HOME%\git-flow*" "%GIT_HOME%\gitflow-*") do if exist "%%~fi" del /F /Q "%%~fi" for /F %%i in ("%GIT_HOME%\git-flow*" "%GIT_HOME%\gitflow-*") do if exist "%%~fi" del /F /Q "%%~fi"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment