Skip to content

Commit

Permalink
Update to version 4.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 committed Sep 8, 2024
1 parent 87dcf5f commit fafdedf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,6 @@ class Utils {
if (jfExecDir && jfrogExecDir) {
core.addPath(jfExecDir);
core.addPath(jfrogExecDir);
if (!Utils.isWindows()) {
(0, fs_1.chmodSync)((0, path_1.join)(jfExecDir, jfFileName), 0o555);
(0, fs_1.chmodSync)((0, path_1.join)(jfrogExecDir, jfrogFileName), 0o555);
}
return true;
}
return false;
Expand All @@ -264,6 +260,10 @@ class Utils {
core.addPath(jfCacheDir);
let jfrogCacheDir = yield toolCache.cacheFile(downloadedExecutable, jfrogFileName, jfrogFileName, version);
core.addPath(jfrogCacheDir);
if (!Utils.isWindows()) {
(0, fs_1.chmodSync)((0, path_1.join)(jfCacheDir, jfFileName), 0o555);
(0, fs_1.chmodSync)((0, path_1.join)(jfrogCacheDir, jfrogFileName), 0o555);
}
});
}
/**
Expand Down
9 changes: 5 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,6 @@ export class Utils {
core.addPath(jfExecDir);
core.addPath(jfrogExecDir);

if (!Utils.isWindows()) {
chmodSync(join(jfExecDir, jfFileName), 0o555);
chmodSync(join(jfrogExecDir, jfrogFileName), 0o555);
}
return true;
}
return false;
Expand All @@ -300,6 +296,11 @@ export class Utils {

let jfrogCacheDir: string = await toolCache.cacheFile(downloadedExecutable, jfrogFileName, jfrogFileName, version);
core.addPath(jfrogCacheDir);

if (!Utils.isWindows()) {
chmodSync(join(jfCacheDir, jfFileName), 0o555);
chmodSync(join(jfrogCacheDir, jfrogFileName), 0o555);
}
}

/**
Expand Down

0 comments on commit fafdedf

Please sign in to comment.