Skip to content

Commit

Permalink
Don't echo "Invalid command" when using the version command with a pa…
Browse files Browse the repository at this point in the history
…rameter
  • Loading branch information
abcdefg30 authored and reaperrr committed Jun 29, 2017
1 parent 83be37a commit 057c201
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,13 @@ else
$command = $args
}

switch ($command)
$execute = $command
if ($command.Length -gt 1)
{
$execute = $command[0]
}

switch ($execute)
{
"all" { All-Command }
"dependencies" { Dependencies-Command }
Expand Down

0 comments on commit 057c201

Please sign in to comment.