Skip to content

Commit

Permalink
install.cmd: tweak comments
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander committed Oct 16, 2018
1 parent 3b7637c commit 6e7766f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions install.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -108,29 +108,25 @@ SET COMMANDS_WITHOUT_REPO=git-alias git-extras git-fork git-setup

echo Installing binaries...
FOR /R "%GITEXTRAS%\bin" %%i in (*.*) DO (
:: Fixation for Windows 10.0.17134 Build 17134 (Won't install without /E)
:: Echo file being written for testing
IF "%DEBUG%=="true" ( ECHO "Writing File: %PREFIX%\bin\%%~ni" )

ECHO #^^!/usr/bin/env bash > "%PREFIX%\bin\%%~ni"
TYPE "%GITEXTRAS%\helper\reset-env" >> "%PREFIX%\bin\%%~ni"
TYPE "%GITEXTRAS%\helper\git-extra-utility" >> "%PREFIX%\bin\%%~ni"
TYPE "%GITEXTRAS%\helper\is-git-repo" >> "%PREFIX%\bin\%%~ni"

REM Added /E Option for Installation Fix On Windows 10 Higher Version
REM Added /E option for installation fix on Windows 10.0.17134 and higher
MORE /E +2 "%GITEXTRAS%\bin\%%~ni" >> "%PREFIX%\bin\%%~ni"
)

FOR %%i in (%COMMANDS_WITHOUT_REPO%) DO (
:: Fixation for Windows 10.0.17134 Build 17134 (Won't install without /E)
:: Echo file being written for testing
IF "%DEBUG%=="true" ( ECHO "Writing File: %PREFIX%\bin\%%i" )

ECHO #^^!/usr/bin/env bash > "%PREFIX%\bin\%%i"
TYPE "%GITEXTRAS%\helper\reset-env" >> "%PREFIX%\bin\%%i"
TYPE "%GITEXTRAS%\helper\git-extra-utility" >> "%PREFIX%\bin\%%i"

:: Added /E Option for Installation Fix On Windows 10 Higher Version
REM Added /E option for installation fix on Windows 10.0.17134 and higher
MORE /E +2 "%GITEXTRAS%\bin\%%i" >> "%PREFIX%\bin\%%i"
)

Expand Down

0 comments on commit 6e7766f

Please sign in to comment.