summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_prv_local_install.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/rebar_prv_local_install.erl b/src/rebar_prv_local_install.erl
index c41812f..cd6a204 100644
--- a/src/rebar_prv_local_install.erl
+++ b/src/rebar_prv_local_install.erl
@@ -89,15 +89,9 @@ extract_escript(State, ScriptPath) ->
BinFile = filename:join(BinDir, "rebar3"),
filelib:ensure_dir(BinFile),
- {ok, #file_info{mode = _,
- uid = Uid,
- gid = Gid}} = file:read_file_info(ScriptPath),
-
?INFO("Writing rebar3 run script ~ts...", [BinFile]),
file:write_file(BinFile, bin_contents(OutputDir)),
- ok = file:write_file_info(BinFile, #file_info{mode=33277,
- uid=Uid,
- gid=Gid}),
+ ok = file:write_file_info(BinFile, #file_info{mode=33277}),
?INFO("Add to $PATH for use: export PATH=~ts:$PATH", [BinDir]),