Skip to content

Commit

Permalink
sh autodiscovery
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Mar 20, 2016
1 parent 02c2bf0 commit 8bff94e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sh.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, sh,
[{description, "SH VXZ Executor"},
{vsn, "1.9"},
[{description, "SH External Shell Port"},
{vsn, "2.3"},
{registered, []},
{applications, [kernel,stdlib]},
{mod, { sh_app, []}},
Expand Down
2 changes: 1 addition & 1 deletion src/sh.erl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ executable(C) ->
end.

run([C|Args], Log, Cwd) when is_list(C) -> run(executable(C), Args, Log, Cwd);
run(Command, Log, Cwd) when is_list(Command) -> run("/bin/sh", ["-c", Command], Log, Cwd).
run(Command, Log, Cwd) when is_list(Command) -> run(executable("sh"), ["-c", Command], Log, Cwd).

run(Command, Args, ignoreeol, Cwd) ->
Port = erlang:open_port({spawn_executable, Command},
Expand Down

0 comments on commit 8bff94e

Please sign in to comment.