This commit is contained in:
vat_emp 2023-03-28 11:54:20 +02:00
parent 36417f2889
commit 712c22f1cc
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Set-Location ([Environment]::GetFolderPath("MyDocuments"))
cd "VAT-Software"
git fetch --all
git reset --hard origin/master

6
scripts/test.ps1 Normal file
View 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'"