diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-11-26 11:04:21 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-11-26 11:36:26 +0100 |
commit | ab79534507f5f7bf19b2f06c8e22043399b5dbb3 (patch) | |
tree | 9b7ad374cde95d566200c724466088faad01a85a /src | |
parent | 9632860ac2c586164c39bc09cb0e090812251cce (diff) |
Limit line length
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_rel_utils.erl | 3 |
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. |