fix(exec): run quoted Windows executables without arguments
This commit is contained in:
1 parent
920efd00b8
commit
ac89579206
2 files changed
+16
-1
No files matched your search
@@ -611,7 +611,7 @@ class ExecTool(Tool):
|
||||
|
||||
quote = stripped[0]
|
||||
end = stripped.find(quote, 1)
|
||||
if end == -1 or end + 1 >= len(stripped) or not stripped[end + 1].isspace():
|
||||
if end == -1 or (end + 1 < len(stripped) and not stripped[end + 1].isspace()):
|
||||
return command
|
||||
|
||||
executable = stripped[1:end]
|
||||
|
||||
Reference in new issue
Block a user