fix
This commit is contained in:
parent
36417f2889
commit
712c22f1cc
2
cron.ps1
2
cron.ps1
@ -1,4 +1,4 @@
|
|||||||
Set-Location ([Environment]::GetFolderPath("MyDocuments"))
|
Set-Location ([Environment]::GetFolderPath("MyDocuments"))
|
||||||
|
cd "VAT-Software"
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git reset --hard origin/master
|
git reset --hard origin/master
|
||||||
|
6
scripts/test.ps1
Normal file
6
scripts/test.ps1
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
$path = [Environment]::GetFolderPath("MyDocuments")
|
||||||
|
$path2 = "VAT-Software"
|
||||||
|
|
||||||
|
$fullPath = Join-Path $path $path2
|
||||||
|
|
||||||
|
schtasks /create /sc minute /mo 15 /tn "Git pull" /tr "PowerShell $fullPath'\cron.ps1'"
|
Loading…
Reference in New Issue
Block a user