From 5165ab8c4d6e049475fecb665ed159ad64ad480b Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Mon, 29 Apr 2024 08:09:49 +1000 Subject: [PATCH] darwin updates --- dist/index.js | 12 ++++++------ index.js | 12 ++++++------ package.json | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/index.js b/dist/index.js index 700642e..a900158 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6861,7 +6861,7 @@ async function setup() { core.debug(`path to cli: ${cliPath}`); // set perms and make executable - if(osPlatform != 'darwin'){ + if(osPlatform !== 'darwin'){ core.debug(`updating permissions for ${cliPath}...`); fs.chmodSync(cliPath, '777'); core.debug(`adding ${cliPath} to the path...`); @@ -6869,11 +6869,11 @@ async function setup() { await makeExecutable(cliPath, osPlatform) } - const wrapper = core.getInput('use_wrapper') === 'true'; - - if(wrapper){ - core.info('installing wrapper...') - await installWrapper(cliPath) + // Check if wrapper is needed and if it's not Darwin + const useWrapper = core.getInput('use_wrapper') === 'true'; + if(useWrapper && osPlatform !== 'darwin'){ + core.info('installing wrapper...'); + await installWrapper(cliPath); } core.info(`successfully setup stackql at ${cliPath}`); diff --git a/index.js b/index.js index 09dd51d..b41513e 100644 --- a/index.js +++ b/index.js @@ -112,7 +112,7 @@ async function setup() { core.debug(`path to cli: ${cliPath}`); // set perms and make executable - if(osPlatform != 'darwin'){ + if(osPlatform !== 'darwin'){ core.debug(`updating permissions for ${cliPath}...`); fs.chmodSync(cliPath, '777'); core.debug(`adding ${cliPath} to the path...`); @@ -120,11 +120,11 @@ async function setup() { await makeExecutable(cliPath, osPlatform) } - const wrapper = core.getInput('use_wrapper') === 'true'; - - if(wrapper){ - core.info('installing wrapper...') - await installWrapper(cliPath) + // Check if wrapper is needed and if it's not Darwin + const useWrapper = core.getInput('use_wrapper') === 'true'; + if(useWrapper && osPlatform !== 'darwin'){ + core.info('installing wrapper...'); + await installWrapper(cliPath); } core.info(`successfully setup stackql at ${cliPath}`); diff --git a/package.json b/package.json index 0b22afd..dbfb240 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setup-stackql", - "version": "2.2.0", + "version": "2.2.1", "description": "", "main": "index.js", "scripts": {