Skip to content

Commit 406c1a8

Browse files
authored
Update ToolboxDistribution.yml
1 parent 0e10442 commit 406c1a8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

AzureDevOps/ToolboxDistribution.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@ jobs:
2121
env:
2222
MLM_LICENSE_TOKEN: $(MLM_LICENSE_TOKEN)
2323

24+
- task: RunMATLABCommand@1
25+
inputs:
26+
command: "fid = fopen('matlabroot.txt','w'); fprintf(fid, '%s', matlabroot); fclose(fid);"
27+
2428
# - script: MATLAB_CACHE_FOLDER=$(matlab-batch matlabroot)
2529
# - script: echo "Hello"
2630
# ${{ if eq(variables['imageName'], 'windows-latest') }}:
27-
- script: $MATLAB_CACHE_FOLDER = matlab-batch matlabroot
28-
env:
29-
MLM_LICENSE_TOKEN: $(MLM_LICENSE_TOKEN)
31+
- script: |
32+
export MATLABROOT=$(cat matlabroot.txt)
33+
echo "MATLAB_CACHE_FOLDER=$MATLABROOT" >> $BASH_ENV
34+
# - script: $MATLAB_CACHE_FOLDER = matlab-batch matlabroot
35+
# env:
36+
# MLM_LICENSE_TOKEN: $(MLM_LICENSE_TOKEN)
3037
# ${{ else }}:
3138
# - script: set MATLAB_CACHE_FOLDER=$(matlab-batch matlabroot)
3239
# env:

0 commit comments

Comments
 (0)