Skip to content

Commit 24a56e1

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

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/install.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function install(platform: string, release: string, products: strin
2828

2929
const matlabLocation = "/opt/matlab/";
3030
const key = platform + release + products.join("-");
31-
let cacheKey
31+
let cacheKey;
3232

3333
await core.group("Retrieving MATLAB from cache if available", async () => {
3434
cacheKey = await cache.restoreCache([matlabLocation], key);
@@ -57,16 +57,17 @@ export async function install(platform: string, release: string, products: strin
5757

5858
}
5959

60-
core.addPath("/opt/matlab/" + release + "/bin");
61-
await script.downloadAndRunScript(platform, properties.matlabBatchInstallerUrl, []);
60+
await core.group("Adding MATLAB to path", async () => {
61+
core.addPath(matlabLocation + release + "/bin");
62+
});
63+
await core.group("Fetching matlab-batch", async () => {
64+
await script.downloadAndRunScript(platform, properties.matlabBatchInstallerUrl, []);
65+
});
6266

6367
await core.group("Saving MATLAB to cache", async () => {
6468
await cache.saveCache([matlabLocation], key);
6569
});
6670

67-
68-
69-
7071
return;
7172
}
7273

0 commit comments

Comments
 (0)