diff --git a/src/sh.app.src b/src/sh.app.src index 6ac1876..bd7ef47 100644 --- a/src/sh.app.src +++ b/src/sh.app.src @@ -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, []}}, diff --git a/src/sh.erl b/src/sh.erl index 9df842b..1de19c0 100644 --- a/src/sh.erl +++ b/src/sh.erl @@ -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},