Skip to content

Commit 5165ab8

Browse files
committed
darwin updates
1 parent c5e9288 commit 5165ab8

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

dist/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6861,19 +6861,19 @@ async function setup() {
68616861
core.debug(`path to cli: ${cliPath}`);
68626862

68636863
// set perms and make executable
6864-
if(osPlatform != 'darwin'){
6864+
if(osPlatform !== 'darwin'){
68656865
core.debug(`updating permissions for ${cliPath}...`);
68666866
fs.chmodSync(cliPath, '777');
68676867
core.debug(`adding ${cliPath} to the path...`);
68686868
core.addPath(cliPath)
68696869
await makeExecutable(cliPath, osPlatform)
68706870
}
68716871

6872-
const wrapper = core.getInput('use_wrapper') === 'true';
6873-
6874-
if(wrapper){
6875-
core.info('installing wrapper...')
6876-
await installWrapper(cliPath)
6872+
// Check if wrapper is needed and if it's not Darwin
6873+
const useWrapper = core.getInput('use_wrapper') === 'true';
6874+
if(useWrapper && osPlatform !== 'darwin'){
6875+
core.info('installing wrapper...');
6876+
await installWrapper(cliPath);
68776877
}
68786878
core.info(`successfully setup stackql at ${cliPath}`);
68796879

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,19 @@ async function setup() {
112112
core.debug(`path to cli: ${cliPath}`);
113113

114114
// set perms and make executable
115-
if(osPlatform != 'darwin'){
115+
if(osPlatform !== 'darwin'){
116116
core.debug(`updating permissions for ${cliPath}...`);
117117
fs.chmodSync(cliPath, '777');
118118
core.debug(`adding ${cliPath} to the path...`);
119119
core.addPath(cliPath)
120120
await makeExecutable(cliPath, osPlatform)
121121
}
122122

123-
const wrapper = core.getInput('use_wrapper') === 'true';
124-
125-
if(wrapper){
126-
core.info('installing wrapper...')
127-
await installWrapper(cliPath)
123+
// Check if wrapper is needed and if it's not Darwin
124+
const useWrapper = core.getInput('use_wrapper') === 'true';
125+
if(useWrapper && osPlatform !== 'darwin'){
126+
core.info('installing wrapper...');
127+
await installWrapper(cliPath);
128128
}
129129
core.info(`successfully setup stackql at ${cliPath}`);
130130

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-stackql",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)