Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use git provied by winget #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ setlocal
REM "Execute setup.bat, update.bat and scoop.sh at first"
call %WORKDIR%\setup.bat
call %WORKDIR%\update.bat
%HOMEDRIVE%%HOMEPATH%\scoop\apps\git-with-openssh\current\usr\bin\bash.exe --login scoop.sh
"%PROGRAMFILES%\Git\usr\bin\bash.exe" --login scoop.sh

REM "Execute roles."
call %WORKDIR%\roles\git-bash\main.bat
%HOMEDRIVE%%HOMEPATH%\scoop\apps\git-with-openssh\current\usr\bin\bash.exe --login %WORKDIR%\roles\vscode\main.sh
"%PROGRAMFILES%\Git\usr\bin\bash.exe" --login %WORKDIR%\roles\vscode\main.sh

exit /b
endlocal
Expand Down
7 changes: 6 additions & 1 deletion setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ setlocal
exit /b
)

call :InstallPackage "git-with-openssh"
where git > nul 2> nul
if %ERRORLEVEL% == 1 (
call :LogError "You must install git. (winget install Git.Git)"
exit /b
)

call :InstallPackage "aria2"

exit /b
Expand Down