Prevent the -v option from overtaking other commands

This commit is contained in:
Richard Kuhnt
2017-12-24 13:43:29 +01:00
parent 609329bd2d
commit 8a67eeb8df
+1 -1
View File
@@ -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