From eefaaceec691ace0373e1366035041e67e4fb996 Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Sun, 8 Sep 2024 17:22:24 +0300 Subject: [PATCH] Remove redundant chmod on cached executable (#212) --- lib/utils.js | 4 ---- src/utils.ts | 4 ---- 2 files changed, 8 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 3e297d80f..1a05f5af5 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -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; diff --git a/src/utils.ts b/src/utils.ts index c36c28c52..c92ef1524 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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;