Skip to content

Commit

Permalink
Improve formatting of verbose output in Setup-ScheduledTask
Browse files Browse the repository at this point in the history
  • Loading branch information
joeltimothyoh committed Dec 24, 2019
1 parent a297563 commit d91f12f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ScheduledTaskManagement/Public/Setup-ScheduledTask.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function Setup-ScheduledTask {
# Serialize definitions
$DefinitionsCollectionSerialized = $DefinitionsCollection | % {
"Serializing task definition:" | Write-Verbose
$_ | Out-String | Write-Verbose
$_ | Out-String -Stream | % { $_.Trim() } | ? { $_ } | Write-Verbose
try {
Serialize-DefinitionObject -DefinitionObject $_
}catch {
Expand All @@ -69,7 +69,7 @@ function Setup-ScheduledTask {
# Setup scheduled tasks
$DefinitionsCollectionSerialized | % {
"Setting up task:" | Write-Verbose
$_ | Out-String | Write-Verbose
$_ | Out-String -Stream | % { $_.Trim() } | ? { $_ } | Write-Verbose
try {
Apply-ScheduledTask -DefinitionObject $_
}catch {
Expand Down

0 comments on commit d91f12f

Please sign in to comment.