25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Clone to the dir specified in rebar.config... useful for erlang-sqlite3

This commit is contained in:
Badlop 2021-02-19 17:33:58 +01:00
parent b41ce8828c
commit c8bec07c45

View File

@ -65,7 +65,7 @@ sub update_deps_repos {
say "Downloading $dep...";
my $repo = $deps->{$dep}->{repo};
$repo =~ s!^https?://github.com/!git\@github.com:!;
system("git", "-C", ".deps-update", "clone", $repo);
system("git", "-C", ".deps-update", "clone", $repo, $dep);
} elsif (time() - stat($dd)->mtime > 24 * 60 * 60 or $force) {
say "Updating $dep...";
system("git", "-C", $dd, "pull");