add gitme and git
This commit is contained in:
parent
564ae4af0f
commit
0ed6ba34b3
|
@ -1,5 +1,7 @@
|
|||
@echo off
|
||||
where choco.exe >nul 2>nul
|
||||
if errorlevel 1 powershell -c "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1').Replace('if (Test-ChocolateyInstalled)', 'if ($false)'))"
|
||||
call v-choco-refreshenv
|
||||
if errorlevel 1 (
|
||||
powershell -c "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1').Replace('if (Test-ChocolateyInstalled)', 'if ($false)'))"
|
||||
call v-choco-refreshenv
|
||||
)
|
||||
choco.exe %*
|
|
@ -0,0 +1,4 @@
|
|||
@echo off
|
||||
where git.exe 2>nul >nul
|
||||
if errorlevel 1 call choco install git & call %~dp0\v-choco-refreshenv
|
||||
git.exe %*
|
|
@ -0,0 +1,6 @@
|
|||
@echo off
|
||||
if "%1"=="" (
|
||||
echo gitme username/reponame
|
||||
exit /b
|
||||
)
|
||||
git clone https://gitme.fun/%1 . && if exist vid-init-module.cmd call vid-init-module.cmd
|
Loading…
Reference in New Issue