From 4f1cfd975003051e4d29da28d9ffe386c091baa3 Mon Sep 17 00:00:00 2001 From: Namdak Tonpa Date: Wed, 11 Mar 2015 15:22:40 +0200 Subject: [PATCH] avoid warning --- src/sh.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sh.erl b/src/sh.erl index d636049..54739c4 100644 --- a/src/sh.erl +++ b/src/sh.erl @@ -43,7 +43,7 @@ run(Command, Args, Log, Cwd) -> file:write(File, [">>> ", ts(), " exit status: ", integer_to_list(Status), "\n"]), {done, Status, Log}. -run(Command, Args, Log, Cwd, Env) -> +run(Command, Args, _Log, Cwd, Env) -> Port = erlang:open_port({spawn_executable, executable(Command)}, [stream, stderr_to_stdout, binary, exit_status, {args, Args}, {cd, Cwd}, {env, Env}]),