Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 3760e23

Browse files
authored
Update detect-server.js
1 parent 8e108a3 commit 3760e23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/detect-server.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ module.exports.serverSettings = async devConfig => {
110110
settings.command || null,
111111
tellUser("command")
112112
); // if settings.command is empty, its bc no settings matched
113+
let devConfigArgs = devConfig.command.split(/\s/).slice(1);
114+
if (devConfigArgs[0] === "run") devConfigArgs = devConfigArgs.slice(1);
113115
settings.args = assignLoudly(
114-
devConfig.command.split(/\s/).slice(1),
116+
devConfigArgs,
115117
settings.command || null,
116118
tellUser("command")
117119
); // if settings.command is empty, its bc no settings matched

0 commit comments

Comments
 (0)