Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 14, 2025
1 parent eb5aa6f commit 2b5afd4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ const tar = require('tar');
const fs = require('fs');
const os = require('os');

console.error(process.env.PATH);
console.error(process.env);

const dstdir = (() => {
try {
fs.accessSync('/usr/local/bin', fs.constants.W_OK);
return '/usr/local/bin';
} catch (err) {
return join(process.env.INPUT_PKGX_DIR || join(process.env.HOME, '.pkgx'), 'bin');
return path.join(process.env.INPUT_PKGX_DIR || path.join(process.env.HOME, '.pkgx'), 'bin');
}
})();

Expand Down

0 comments on commit 2b5afd4

Please sign in to comment.