Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure AGNER_BIN (/usr/loca/bin by default) exists when installing

  • Loading branch information...
commit 10c7f1f76f0a6fe2aac4cef14fdb8f8d6c153f9a 1 parent aaac6a5
@yrashk yrashk authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/agner_fetch.erl
View
1  src/agner_fetch.erl
@@ -587,6 +587,7 @@ install_command(#opts_rec{ spec = {spec, Spec}, directory = Directory, quiet = Q
Files ->
lists:foreach(fun (File) ->
Symlink = filename:join(os:getenv("AGNER_BIN"),filename:basename(File)),
+ ok = filelib:ensure_dir(os:getenv("AGNER_BIN") ++ "/"),
File1 = filename:join([InstallPrefix,File]),
file:delete(Symlink),
io:format("[Symlinking ~s -> ~s]~n",[File1, Symlink]),
Please sign in to comment.
Something went wrong with that request. Please try again.