script fix
This commit is contained in:
parent
eff23caeca
commit
9bc7103c15
BIN
scripts/.DS_Store
vendored
Normal file
BIN
scripts/.DS_Store
vendored
Normal file
Binary file not shown.
@ -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"
|
Loading…
Reference in New Issue
Block a user