forked from lohrun/git-hooks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
win_remote_install.bat
13 lines (10 loc) · 1.14 KB
/
win_remote_install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
@echo off
REM create the .githook folder in the user's home, downloads the githook files
mkdir %USERPROFILE%\.githook
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/sdwolf/git-hooks/master/githook', '%USERPROFILE%\.githook\githook.sh') }"
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/sdwolf/git-hooks/master/LICENSE', '%USERPROFILE%\.githook\LICENSE') }"
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/sdwolf/git-hooks/master/README.md', '%USERPROFILE%\.githook\README.md') }"
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/sdwolf/git-hooks/master/win_uninstall.bat', '%USERPROFILE%\.githook\win_uninstall.bat') }"
REM creates the commit-msg folder and downloads the commit-msg hook script
mkdir %USERPROFILE%\.githook\commit-msg
powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/sdwolf/git-hooks/master/hooks/commit-msg/25characterlimit.sh', '%USERPROFILE%\.githook\commit-msg\25characterlimit.sh') }"