Skip to content

Commit

Permalink
Merge pull request #119 from justfortherec/fix-118-cannot-find-module
Browse files Browse the repository at this point in the history
Fix #118: Cannot find module '${HOME}/host.js'
  • Loading branch information
andy-portmen authored Jul 22, 2024
2 parents 555c961 + c43a570 commit 7d22901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/app/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function application() {
return reject(e);
}
const isNode = process.argv.filter(a => a === '--add_node').length === 0;
const run = `#!/usr/bin/env bash\n${isNode ? process.argv[0] : './node'} host.js`;
const run = `#!/usr/bin/env bash\n${isNode ? process.argv[0] : './node'} $(dirname "$0")/host.js`;
fs.writeFile(path.join(dir, 'run.sh'), run, e => {
if (e) {
return reject(e);
Expand Down

0 comments on commit 7d22901

Please sign in to comment.