From 5da903aca2bfb43960e3d277247961a8659e2792 Mon Sep 17 00:00:00 2001 From: Bill ZHANG <36790218+Lutra-Fs@users.noreply.github.com> Date: Sun, 30 Jul 2023 08:44:55 +1000 Subject: [PATCH] fix(scoop-virustotal): continue exec when no app but -a provided --- libexec/scoop-virustotal.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/scoop-virustotal.ps1 b/libexec/scoop-virustotal.ps1 index f22bbbf1c0..30c5e8494b 100644 --- a/libexec/scoop-virustotal.ps1 +++ b/libexec/scoop-virustotal.ps1 @@ -36,7 +36,7 @@ $opt, $apps, $err = getopt $args 'asnup' @('all', 'scan', 'no-depends', 'no-update-scoop', 'passthru') if ($err) { "scoop virustotal: $err"; exit 1 } -if (!$apps) { my_usage; exit 1 } +if (!$apps -and -$all) { my_usage; exit 1 } $architecture = Format-ArchitectureString if (is_scoop_outdated) {