Skip to content

Commit

Permalink
Merge pull request #12 from UncleGrumpy/fix_install_freebsd
Browse files Browse the repository at this point in the history
Fix some small bugs in install.sh
  • Loading branch information
fadushin committed Nov 4, 2023
2 parents a7b64ea + d7356c0 commit d94b4cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ set -e
readonly root_dir="$(cd $(dirname $0) && pwd)"

readonly nargs=$#
if [[ ${nargs} -lt 2 ]]; then
if [ ${nargs} -lt 2 ]; then
echo
echo "Syntax: $0 <prefix> <version>"
echo " where <prefix> is the prefix location for the install"
Expand Down Expand Up @@ -84,8 +84,8 @@ echo_run cp "${src_tar}" "${tmp_dir}/."
echo_run gunzip "${tmp_dir}/atomvm_packbeam-${version}.tar.gz"

readonly dest_dir="${prefix}/atomvm_packbeam"
if [ -e "${dest_dir}" ]; then
echo "ERROR! It looks like ${dest_dir} already exists!"
if [ $(${dest_dir}/bin/packbeam version) = ${version} ]; then
echo "ERROR! It looks like ${version} is already installed!"
exit 1
fi

Expand Down

0 comments on commit d94b4cd

Please sign in to comment.