Skip to content

Commit b37f028

Browse files
committed
autorun.js: add bash script support
1 parent 1393bad commit b37f028

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/autorun.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ exports.autorun = function(dir) {
7373
apps[file].on('close', appClosed);
7474
apps[file].stdout.on('data', onStdout);
7575
apps[file].stderr.on('data', onStderr);
76+
} else if(file.match(/\.sh$/)) {
77+
winston.info('start: ' + file);
78+
apps[file] = child_process.spawn('/bin/bash', [ar + '/' + file]);
79+
apps[file].on('close', appClosed);
80+
apps[file].stdout.on('data', onStdout);
81+
apps[file].stderr.on('data', onStderr);
7682
} else if(file.match(/\.ino$/)) {
7783
winston.info('start: ' + file);
7884
apps[file] = child_process.spawn('/usr/bin/make',

0 commit comments

Comments
 (0)