From 057c201e85a6084c19f2ea27f67ad3b7d01343cd Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Fri, 26 May 2017 10:31:12 +0200 Subject: [PATCH] Don't echo "Invalid command" when using the version command with a parameter --- make.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/make.ps1 b/make.ps1 index ce7e14930e..03da91f9e0 100644 --- a/make.ps1 +++ b/make.ps1 @@ -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 }