mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-05-06 09:42:29 +00:00
Prevent the -v option from overtaking other commands
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user