Do not validate the command does not contain spaces.

This PR removes validation that the command string does not contain
spaces. This can cause issues where the path contains a folder that
includes a space ("C:\Program Files\Python35\python.exe").

Fixes #1737
This commit is contained in:
Alex Dadgar
2016-11-10 10:22:17 -08:00
parent 818196e4a1
commit 3715613a47

View File

@@ -118,11 +118,6 @@ func validateCommand(command, argField string) error {
return fmt.Errorf("command contains extra white space: %q", command)
}
split := strings.Split(trimmed, " ")
if len(split) != 1 {
return fmt.Errorf("command contained more than one input. Use %q field to pass arguments", argField)
}
return nil
}