summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_rel_utils.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_rel_utils.erl b/src/rebar_rel_utils.erl
index 4725f58..91e1aea 100644
--- a/src/rebar_rel_utils.erl
+++ b/src/rebar_rel_utils.erl
@@ -177,7 +177,8 @@ get_root_dir(ReltoolConfig) ->
end.
get_target_parent_dir(ReltoolConfig) ->
- case lists:reverse(tl(lists:reverse(filename:split(get_target_dir(ReltoolConfig))))) of
+ TargetDir = get_target_dir(ReltoolConfig),
+ case lists:reverse(tl(lists:reverse(filename:split(TargetDir)))) of
[] -> ".";
Components -> filename:join(Components)
end.