summaryrefslogtreecommitdiff
path: root/src/rebar_utils.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-09-17 17:59:03 -0500
committerTristan Sloughter <t@crashfast.com>2014-09-17 17:59:03 -0500
commit6aaeae93eae0581e1b0a8222ca28f4117d9b9bf5 (patch)
tree778f3797ca3a610f7eb8d940b98dae4f826b7b82 /src/rebar_utils.erl
parent0bd8ecdcf919ff35849d2d71dd8bc20196dd84a9 (diff)
remove use of 17+ function lists:droplast/1
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.