Skip to content

Commit 3a32df3

Browse files
committed
Update install.ts
1 parent e8cc1e5 commit 3a32df3

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/install.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,22 @@ export async function install(platform: string, release: string, products: strin
5151
if (exitCode !== 0) {
5252
return Promise.reject(Error(`MPM exited with non-zero code ${exitCode}`));
5353
}
54-
5554

56-
});
57-
58-
core.addPath("/opt/matlab/" + release + "/bin");
59-
await script.downloadAndRunScript(platform, properties.matlabBatchInstallerUrl, []);
6055

61-
await core.group("Saving MATLAB to cache", async () => {
62-
await cache.saveCache([matlabLocation], key);
6356
});
64-
6557

6658
}
6759

60+
core.addPath("/opt/matlab/" + release + "/bin");
61+
await script.downloadAndRunScript(platform, properties.matlabBatchInstallerUrl, []);
62+
63+
await core.group("Saving MATLAB to cache", async () => {
64+
await cache.saveCache([matlabLocation], key);
65+
});
66+
67+
68+
69+
6870
return;
6971
}
7072

0 commit comments

Comments
 (0)