We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7b64ea + d7356c0 commit d94b4cdCopy full SHA for d94b4cd
install.sh
@@ -48,7 +48,7 @@ set -e
48
readonly root_dir="$(cd $(dirname $0) && pwd)"
49
50
readonly nargs=$#
51
-if [[ ${nargs} -lt 2 ]]; then
+if [ ${nargs} -lt 2 ]; then
52
echo
53
echo "Syntax: $0 <prefix> <version>"
54
echo " where <prefix> is the prefix location for the install"
@@ -84,8 +84,8 @@ echo_run cp "${src_tar}" "${tmp_dir}/."
84
echo_run gunzip "${tmp_dir}/atomvm_packbeam-${version}.tar.gz"
85
86
readonly dest_dir="${prefix}/atomvm_packbeam"
87
-if [ -e "${dest_dir}" ]; then
88
- 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!"
89
exit 1
90
fi
91
0 commit comments