script fix

This commit is contained in:
tomas.eisner 2023-03-24 14:18:51 +01:00
parent eff23caeca
commit 9bc7103c15
3 changed files with 5 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
scripts/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -12,10 +12,14 @@ git config credential.helper store
git config user.email "vat_emp@dalkove-ovladace.cz"
git config user.name "vat_emp"
$path = $path + "\VAT-software" + "\cron.bat"
$path = $path + "\VAT-Software" + "\cron.bat"
$action = New-ScheduledTaskAction -Execute $path
$trigger = New-ScheduledTaskTrigger -Daily -At 10am
if ($(Get-ScheduledTask -TaskName "git pull" -ErrorAction SilentlyContinue).TaskName -eq "git pull") {
Unregister-ScheduledTask -TaskName "git pull" -Confirm:$False
}
Register-ScheduledTask -Action $action -Trigger $trigger -TaskPath "MyTasks" -TaskName "git pull" -Description "git pull"