File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,21 +66,21 @@ switch ($method) {
66
66
67
67
# Overall task comparison
68
68
Write-Debug " DEBUG: Scheduled task: $task "
69
-
69
+
70
70
# Fail condition
71
71
if ($null -eq $task ) {
72
72
Write-Progress - Activity " Testing Scheduled Task" - CurrentOperation " Comparison failed - Task Missing" - Completed - Id 1
73
73
return $false
74
74
}
75
75
76
76
$Test_ScriptResult = Test-ScheduledTaskScript
77
-
77
+
78
78
$Test_DescResult = ( $task.Description -eq $TaskDesc )
79
79
Write-Progress - Activity " Testing Scheduled Task" - CurrentOperation " Description Comparison finished with result: $Test_DescResult " - PercentComplete 80 - Id 1
80
80
81
81
$TestResult = ( $Test_DescResult -and $Test_ScriptResult )
82
82
Write-Progress - Activity " Testing Scheduled Task" - CurrentOperation " Validation finished with result: $TestResult " - Completed - Id 1
83
-
83
+
84
84
$TestResult
85
85
}
86
86
@@ -101,7 +101,7 @@ switch ($method) {
101
101
}
102
102
Write-Debug " DEBUG: Trigger is set to $ ( $using :Trigger ) "
103
103
Write-Debug " DEBUG: Build Trigger: $buildtrigger "
104
-
104
+
105
105
# Check if the task exists and remove it if it does
106
106
if (! [string ]::IsNullOrWhiteSpace($using :task )){
107
107
Unregister-ScheduledTask - TaskName $using :TaskName - Confirm:$false
You can’t perform that action at this time.
0 commit comments