Skip to content

Commit

Permalink
darwin updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyaven committed Apr 28, 2024
1 parent c5e9288 commit 5165ab8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6861,19 +6861,19 @@ 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...`);
core.addPath(cliPath)
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}`);

Expand Down
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,19 @@ 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...`);
core.addPath(cliPath)
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}`);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-stackql",
"version": "2.2.0",
"version": "2.2.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5165ab8

Please sign in to comment.