Skip to content

Commit e97a548

Browse files
committed
Update elixir untar commands
1 parent c913b55 commit e97a548

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/compile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ erlang_root="${build_dir}/erlang"
77
elixir_root="${build_dir}/elixir"
88
mkdir -p $1 $2
99
mkdir -p ${erlang_root}
10-
mkdir -p ${elixir_root}
1110

1211
language_versions_file="${build_dir}/.language_versions"
1312

@@ -69,7 +68,9 @@ PATH=${build_pack_dir}:$PATH
6968
curl -LksO ${elixir_source_url} || exit 1
7069
)
7170

72-
tar zxf ${cache_dir}/${elixir_tar} -C ${elixir_root} --strip-components=2
71+
rm -rf ${elixir_root}
72+
tar zxf ${cache_dir}/${elixir_tar} --strip-components=2
73+
mv "elixir-${elixir_version}" ${elixir_root}
7374

7475
echo "Listing cache dir"
7576
ls $cache_dir

0 commit comments

Comments
 (0)