Removing debug and tidying up do.sh to pull out value

This commit is contained in:
2021-01-04 14:00:01 -06:00
parent 5fbf503526
commit 147fa6dd9f

9
do.sh
View File

@@ -5,14 +5,17 @@
# shellcheck disable=SC2039
set -Eeuo pipefail # -e "Automatic exit from bash shell script on error" -u "Treat unset variables and parameters as errors"
_install_location() {
# shellcheck disable=SC2016
wolframscript -c 'FileNameJoin[{StringReplace[$UserBaseDirectory, "\\" -> "/"], "Applications", "owenScalapinoFreeEnergy"}, OperatingSystem -> "Unix"]' | tr -d '\r\n'
}
install() {
# shellcheck disable=SC2039
local install_loc
# shellcheck disable=SC2016
install_loc=$(wolframscript -c 'FileNameJoin[{StringReplace[$UserBaseDirectory, "\\" -> "/"], "Applications", "owenScalapinoFreeEnergy"}, OperatingSystem -> "Unix"]' | tr -d '\r\n')
install_loc=$(_install_location)
echo "Installing to [$install_loc]"
mkdir -p "$install_loc"
echo $install_loc | hexdump
cp src/wl/owenScalapinoFreeEnergy.wl "$install_loc"
}