From ac71fccbecb3d4158f249db9c1b9bb043cb8e966 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Tue, 23 Nov 2021 16:53:42 +0800 Subject: [PATCH] fix(scoop-update): Update apps with '--all' --- libexec/scoop-update.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/scoop-update.ps1 b/libexec/scoop-update.ps1 index 9927da782..3760cd816 100644 --- a/libexec/scoop-update.ps1 +++ b/libexec/scoop-update.ps1 @@ -278,7 +278,7 @@ function update($app, $global, $quiet = $false, $independent, $suggested, $use_c install_app $app $architecture $global $suggested $use_cache $check_hash } -if (!$apps) { +if (-not ($apps -or $all)) { if ($global) { "scoop update: --global is invalid when is not specified."; exit 1 }