Skip to content

Commit

Permalink
Remove redundant chmod on cached executable (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 authored Sep 8, 2024
1 parent b9a85a8 commit eefaace
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 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 Down
4 changes: 0 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 Down

0 comments on commit eefaace

Please sign in to comment.