diff --git a/libexec/scoop-update.ps1 b/libexec/scoop-update.ps1 index 8c713a33ad..aef60a6eb4 100644 --- a/libexec/scoop-update.ps1 +++ b/libexec/scoop-update.ps1 @@ -54,6 +54,10 @@ function update_scoop() { write-host "Updating Scoop..." $last_update = $(last_scoop_update).ToString('s') + $show_update_log = get_config "show_update_log" + if($show_update_log -eq $null) { + $show_update_log = $true + } $currentdir = fullpath $(versiondir 'scoop' 'current') if(!(test-path "$currentdir\.git")) { $newdir = fullpath $(versiondir 'scoop' 'new') @@ -74,7 +78,9 @@ function update_scoop() { Push-Location $currentdir git_pull -q $res = $lastexitcode - git_log --no-decorate --date=local --since="`"$last_update`"" --format="`"tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset`"" HEAD + if($show_update_log) { + git_log --no-decorate --date=local --since="`"$last_update`"" --format="`"tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset`"" HEAD + } if($res -ne 0) { abort 'Update failed.' } @@ -88,7 +94,9 @@ function update_scoop() { write-host "Updating '$_' bucket..." Push-Location (bucketdir $_) git_pull -q - git_log --no-decorate --date=local --since="`"$last_update`"" --format="`"tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset`"" HEAD + if($show_update_log) { + git_log --no-decorate --date=local --since="`"$last_update`"" --format="`"tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset`"" HEAD + } Pop-Location }