Skip to content

Commit

Permalink
Merge pull request nvie#172 from sjaeckel/develop
Browse files Browse the repository at this point in the history
fixed the installer in msysgit environment to work with windows XP
  • Loading branch information
nvie committed Dec 6, 2011
2 parents 72594ea + e856e0a commit 6107f88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/msysgit-install.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ echo getopt.exe... Found

if not exist "%GIT_HOME%\bin\git-flow" goto :Install
echo GitFlow is already installed.>&2
choice /C YN /M "Do you want to replace it"
if errorlevel 255 goto :Abort
if errorlevel 2 goto :Abort
if not errorlevel 1 goto :Abort
set /p mychoice="Do you want to replace it [y/n]"
if "%mychoice%"=="y" goto :DeleteOldFiles
goto :Abort

:DeleteOldFiles
echo Deleting old files...
for /F %%i in ("%GIT_HOME%\git-flow*" "%GIT_HOME%\gitflow-*") do if exist "%%~fi" del /F /Q "%%~fi"

Expand Down

0 comments on commit 6107f88

Please sign in to comment.