Skip to content

Commit 7d22901

Browse files
authored
Merge pull request #119 from justfortherec/fix-118-cannot-find-module
Fix #118: Cannot find module '${HOME}/host.js'
2 parents 555c961 + c43a570 commit 7d22901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/app/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function application() {
8686
return reject(e);
8787
}
8888
const isNode = process.argv.filter(a => a === '--add_node').length === 0;
89-
const run = `#!/usr/bin/env bash\n${isNode ? process.argv[0] : './node'} host.js`;
89+
const run = `#!/usr/bin/env bash\n${isNode ? process.argv[0] : './node'} $(dirname "$0")/host.js`;
9090
fs.writeFile(path.join(dir, 'run.sh'), run, e => {
9191
if (e) {
9292
return reject(e);

0 commit comments

Comments
 (0)