diff --git a/scripts/lib/manifest.ps1 b/scripts/lib/manifest.ps1 index f568936..6d70eff 100644 --- a/scripts/lib/manifest.ps1 +++ b/scripts/lib/manifest.ps1 @@ -59,7 +59,7 @@ function Sync-ManagedDestination { [switch]$DryRun, [switch]$Summary ) - Write-Output "SOURCE $Source -> $Destination" + if (-not $Summary) { Write-Output "SOURCE $Source -> $Destination" } $manifestPath = Get-ManagedManifestPath $Destination $oldManifest = Read-ManagedManifest $manifestPath $newManifest = @{} diff --git a/scripts/lib/manifest.sh b/scripts/lib/manifest.sh index 2a2c128..a3e51c7 100755 --- a/scripts/lib/manifest.sh +++ b/scripts/lib/manifest.sh @@ -52,7 +52,7 @@ write_managed_manifest() { # sync_managed_destination [summary: true|false] sync_managed_destination() { local source=$1 destination=$2 stamp=$3 ai_config_root=$4 shell_command=$5 windows_shell_command=$6 dry_run=$7 summary=${8:-false} - printf 'SOURCE %s -> %s\n' "$source" "$destination" + [ "$summary" = true ] || printf 'SOURCE %s -> %s\n' "$source" "$destination" local manifest manifest=$(manifest_path "$destination") declare -A old_manifest