Last active
May 31, 2024 15:08
-
-
Save mducle/9186d062b42f05507d831af3d6677a5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
args=() | |
for var; do | |
[[ $var != '-batch' ]] && args+=("$var") | |
done | |
tmpmfile=mlscript_$(mktemp -u XXXXXXXX) | |
echo "${args[@]}" > ${tmpmfile}.m | |
runner_path=/home/runner/work/_actions/matlab-actions/run-command/v2/dist/bin/glnxa64/ | |
${runner_path}/run-matlab-command "setenv('MW_ORIG_WORKING_FOLDER', cd('`pwd`'));${tmpmfile}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment