Skip to content

Commit 2f92541

Browse files
committed
run_matlab: Prefix env var with MLXSHAKE to avoid collisions
1 parent 1448898 commit 2f92541

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/_mlxshake_run_matlab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
#
77
# ENVIRONMENT VARIABLES
88
#
9-
# PREFERRED_MATLAB_VERSIONS - a space-separated list of Matlab releases to search for if matlab
9+
# MLXSHAKE_PREFERRED_MATLAB_VERSIONS - a space-separated list of Matlab releases to search for if matlab
1010
# is not on the path, in order of descending preference.
1111

1212
set -e
1313

1414
locate_matlab () {
15-
search_order="${PREFERRED_MATLAB_VERSIONS:-R2024b R2024a R2023b R2023a R2022b R2022a R2021b R2021a R2020b R2020a R2019b R2019a R2018b R2018a}"
15+
search_order="${MLXSHAKE_PREFERRED_MATLAB_VERSIONS:-R2024b R2024a R2023b R2023a R2022b R2022a R2021b R2021a R2020b R2020a R2019b R2019a R2018b R2018a}"
1616
if which matlab &>/dev/null; then
1717
matlab=matlab
1818
else

0 commit comments

Comments
 (0)