summaryrefslogtreecommitdiff
path: root/src/rebar_utils.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_utils.erl')
-rw-r--r--src/rebar_utils.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index 18e76fc..fa0a005 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -26,7 +26,8 @@
%% -------------------------------------------------------------------
-module(rebar_utils).
--export([get_cwd/0,
+-export([droplast/1,
+ get_cwd/0,
is_arch/1,
get_arch/0,
wordsize/0,
@@ -77,6 +78,9 @@
%% Public API
%% ====================================================================
+droplast(L) ->
+ lists:reverse(tl(lists:reverse(L))).
+
get_cwd() ->
{ok, Dir} = file:get_cwd(),
Dir.