diff --git a/.DS_Store b/.DS_Store index af4ab10..fb3369a 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/scripts/.DS_Store b/scripts/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/scripts/.DS_Store differ diff --git a/scripts/task_setup.ps1 b/scripts/task_setup.ps1 index ba0bb3f..4b4b986 100644 --- a/scripts/task_setup.ps1 +++ b/scripts/task_setup.ps1 @@ -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" \ No newline at end of file