Browse files

sh printf is portable

  • Loading branch information...
1 parent 0771c28 commit 6b0ebc8ceb26859db852ecbe26ab00bb02e4f79d @msantos committed May 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/procket.erl
View
2 src/procket.erl
@@ -209,7 +209,7 @@ make_args(Port, Options) ->
end,
proplists:get_value(progname, Options, "sudo " ++ progname()) ++ " " ++
string:join([ get_switch(Arg) || Arg <- Options, element(1,Arg) /= ip ], " ") ++ Bind ++
- " > /dev/null 2>&1; echo -n $?".
+ " > /dev/null 2>&1; printf $?".
get_switch({pipe, Arg}) ->
"-p " ++ Arg;

0 comments on commit 6b0ebc8

Please sign in to comment.