We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367ba5f commit 1704e80Copy full SHA for 1704e80
scripts/MatlabReleaseUpgrade.m
@@ -20,8 +20,8 @@ function MatlabReleaseUpgrade(doUpgrade)
20
fprintf("Matlab upgrade command:\n\n%s\n\n", cmd);
21
22
if doUpgrade
23
- s = system(cmd);
24
- assert(s == 0)
+ s = system("cmd /c " + cmd);
+ assert(s == 0, "Return code %d", s)
25
else
26
disp("MatlabReleaseUpgrade(1) to install upgrade")
27
end
@@ -52,7 +52,7 @@ function MatlabReleaseUpgrade(doUpgrade)
52
exe = "'" + exe + "'";
53
54
55
-cmd = sprintf('%s --destination %s', exe, matlabroot);
+cmd = sprintf('%s --destination="%s"', exe, matlabroot);
56
57
58
0 commit comments