From ab79534507f5f7bf19b2f06c8e22043399b5dbb3 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sat, 26 Nov 2011 11:04:21 +0100 Subject: [PATCH] Limit line length --- src/rebar_rel_utils.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.