Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-portmen committed Jul 23, 2017
1 parent 033f836 commit 1eb7586
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion host.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var files = [];
var sprocess = [];

var config = {
version: '0.4.0'
version: '0.4.3'
};
// closing node when parent process is killed
process.stdin.resume();
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ if [ $? -eq 0 ]; then
fi
if [ $? -eq 0 ]; then
echo "Installer is using your system NodeJS."
node install.js `which node`
node install.js `which node` $1
else
MACHINE_TYPE=`uname -m`
echo "Installer is using the attached NodeJS"
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
../node/x64/node install.js --add_node
../node/x64/node install.js --add_node $1
else
../node/x86/node install.js --add_nodes
../node/x86/node install.js --add_nodes $1
fi
fi
2 changes: 1 addition & 1 deletion linux/app/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function application(callback) {
throw e;
}
const isNode = process.argv.filter(a => a === '--add_node').length === 0;
const run = `#!/bin/bash\n${process.argv[0]} host.js`;
const run = `#!/bin/bash\n${isNode ? process.argv[0] : './node'} host.js`;
fs.writeFile(path.join(dir, 'run.sh'), run, e => {
if (e) {
throw e;
Expand Down
2 changes: 1 addition & 1 deletion mac/app/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function application(callback) {
}

const isNode = process.argv.filter(a => a === '--add_node').length === 0;
const run = `#!/bin/bash\n${process.argv[0]} host.js`;
const run = `#!/bin/bash\n${isNode ? process.argv[0] : './node'} host.js`;

fs.writeFile(path.join(dir, 'run.sh'), run, e => {
if (e) {
Expand Down

0 comments on commit 1eb7586

Please sign in to comment.