From 8a67eeb8dfe52aaca5ef63218fb9634e8f615bc7 Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Sun, 24 Dec 2017 13:43:29 +0100 Subject: [PATCH] Prevent the -v option from overtaking other commands --- bin/scoop.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/scoop.ps1 b/bin/scoop.ps1 index 9cb0a47ee..24bf7ca01 100644 --- a/bin/scoop.ps1 +++ b/bin/scoop.ps1 @@ -11,7 +11,7 @@ set-strictmode -off reset_aliases $commands = commands -if ('--version' -contains $cmd -or '-v' -contains $args ) { +if ('--version' -contains $cmd -or (!$cmd -and '-v' -contains $args)) { pushd $(versiondir 'scoop' 'current') write-host "Current Scoop version:" git_log --oneline HEAD -n 1