Skip to content

Commit

Permalink
Update ConCygSys-installer.cmd
Browse files Browse the repository at this point in the history
- corrected exit keys
  • Loading branch information
0zhu authored Nov 23, 2017
1 parent 31a35a2 commit 8a60a59
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ConCygSys-installer.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,15 @@ echo Generating one-file settings and updater file [%Concygsys_settings%]...
echo set INSTALLER=ConCygSys-installer.cmd
echo cscript //Nologo "%%DOWNLOADER%%" https://raw.githubusercontent.com/zhubanRuban/ConCygSys/master/%%INSTALLER%% "%%INSTALLER%%" ^|^| goto :fail
echo start "" "%%INSTALLER%%" ^|^| goto :fail
echo exit /b 0
echo exit 0
echo :fail
echo del "%%DOWNLOADER%%" ^>NUL 2^>^&1
echo echo.
echo echo Update FAILED!
echo echo Try uploading installer manually from %CONCYGSYS_LINK%
echo echo.
echo pause
echo exit /b 1
echo exit 1
) >"%Concygsys_settings%" || goto :fail

echo Launching init script...
Expand Down Expand Up @@ -481,7 +481,7 @@ if "%INSTALL_CONEMU%" == "yes" (
echo ^)
echo ^)
echo :: not to leave this launcher open if called from another batch file
echo exit /b 0
echo exit 0
) >"%Launch_conemu%" || goto :fail
)

Expand All @@ -506,7 +506,7 @@ echo Generating Mintty launcher [%Launch_mintty%]...
echo call "%%~dp0%Concygsys_settings_name%" launcherheader
echo start "" "%%CYGWIN_ROOT%%\bin\mintty.exe" --Title ConCygSys -
echo :: not to leave this launcher open if called from another batch file
echo exit /b 0
echo exit 0
) >"%Launch_mintty%" || goto :fail


Expand Down Expand Up @@ -717,7 +717,7 @@ echo.
pause
:: deleting installer and old launchers
del "%INSTALL_ROOT%ConCygSys*" >NUL 2>&1
exit /b 0
exit 0


:fail
Expand All @@ -730,4 +730,4 @@ if "%UPDATEMODE%" == "yes" (
)
echo.
pause
exit /b 1
exit 1

0 comments on commit 8a60a59

Please sign in to comment.