Skip to content

Commit d1107b4

Browse files
committed
debug 14
1 parent 754872e commit d1107b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ runs:
8383
echo "Is macOS: ${{ runner.os == 'macOS' }}"
8484
echo "Is Windows: ${{ runner.os == 'Windows' }}"
8585
echo 'Testing 4, 5, 6 ...'
86-
.\run-matlab-command.exe "fprintf(regexp(version, '(?<=\().*(?=\))', 'match', 'once'))"
86+
run-matlab-command "fprintf(regexp(version, '(?<=\().*(?=\))', 'match', 'once'))"
8787
echo 'Testing 7, 8, 9 ...'
88-
$MATLAB_REL = (& .\run-matlab-command.exe "fprintf(regexp(version, '(?<=\().*(?=\))', 'match', 'once'))")
88+
export MATLAB_REL=`.\run-matlab-command.exe "fprintf(regexp(version, '(?<=\().*(?=\))', 'match', 'once'))"`
8989
echo "MATLAB_REL=${MATLAB_REL}" >> $GITHUB_ENV
9090
echo "ML_NAME=MATLAB" >> $GITHUB_ENV
9191
echo "ML_CMD=run-matlab-command" >> $GITHUB_ENV
9292
echo "ML_PATHVAR=MATLABPATH" >> $GITHUB_ENV
93-
shell: pwsh
93+
shell: bash
9494
# export MATLAB_VER=`matlab -nojvm -batch "fprintf('%s', ver('matlab').Version)"`
9595
# export MATLAB_REL=`ls /opt/hostedtoolcache/MATLAB`
9696

0 commit comments

Comments
 (0)