Commit 5ee7bec
committed
Stop the service test failing on its own success
schtasks reports "no such task" by exiting non-zero, which is the condition the
uninstall check is looking for; pwsh then carried that exit code out of the step
and failed the job. Check $LASTEXITCODE explicitly instead.1 parent e7996f2 commit 5ee7bec
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| |||
0 commit comments