Skip to content

Commit eb360f6

Browse files
committed
Match hex_source or new hex-<version> files or hex.ez
Output path of hex file
1 parent 37c93a5 commit eb360f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/app_funcs.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ function restore_app() {
1414
function copy_hex() {
1515
mkdir -p ${build_path}/.mix/archives
1616
mkdir -p ${build_path}/.hex
17+
hex_file=`basename ${hex_source:-hex-*.ez}`
1718

18-
hex_file=`basename ${hex_source:-hex*.ez}`
19+
# For older versions of hex which have no version name in file
20+
if [ -z "$hex_file" ]; then
21+
hex_file="hex.ez"
22+
fi
1923

2024
cp ${HOME}/.hex/registry.ets ${build_path}/.hex/
25+
26+
output_section "Copying hex from $hex_file"
2127
cp ${HOME}/.mix/archives/${hex_file} ${build_path}/.mix/archives
2228
}
2329

0 commit comments

Comments
 (0)