From 1397b77f4959d3bc2a3f20471153eb2d230b00b7 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 19 Jan 2021 16:49:28 +0100 Subject: [PATCH] Add some output messages --- backup.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backup.ps1 b/backup.ps1 index 412ce3d..209ae81 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -126,9 +126,12 @@ $backup.actions | % { $destination = "" $source = "" - # Test input path - Write-Debug "Process action : $($_.name) | type: $($_.type)" - if ( $_.psobject.properties.match('source_eval').Count -and $_.source_eval -eq $true ) { + Set-Message "---" + Set-Message "Process action : $($_.name) | type: $($_.type)" + Set-Message "---" + + # Process source + if ( $_.psobject.properties.match('source_eval').Count -and $_.source_eval -eq $true ) { $_.source = eval_var $($_.source) Write-Debug "Result $($_.source)" }