Removing debug and tidying up do.sh to pull out value
This commit is contained in:
9
do.sh
9
do.sh
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user