Skip to content

Commit

Permalink
Hotfix for installation with Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
fadushin committed Oct 18, 2023
1 parent eb9e063 commit 1874698
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion release/packbeam.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
#

root_dir="$(cd $(dirname $0)/.. && pwd)"
if [ -L "${0}" ]; then
base="$(dirname $0)/$(readlink $0)"
root_dir="$(cd $(dirname ${base})/.. && pwd)"
else
root_dir="$(cd $(dirname $0)/.. && pwd)"
fi

pkg_root="${root_dir}/atomvm_packbeam"

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

0 comments on commit 1874698

Please sign in to comment.