Skip to content

Commit 1874698

Browse files
committed
Hotfix for installation with Homebrew
1 parent eb9e063 commit 1874698

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

release/packbeam.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2020
#
2121

22-
root_dir="$(cd $(dirname $0)/.. && pwd)"
22+
if [ -L "${0}" ]; then
23+
base="$(dirname $0)/$(readlink $0)"
24+
root_dir="$(cd $(dirname ${base})/.. && pwd)"
25+
else
26+
root_dir="$(cd $(dirname $0)/.. && pwd)"
27+
fi
28+
2329
pkg_root="${root_dir}/atomvm_packbeam"
2430

2531
PATH="${pkg_root}/erts-{{ release_erts_version }}/bin:${PATH}"

0 commit comments

Comments
 (0)