slightly improved bash complete install notes; fix 'make check'

This commit is contained in:
Trent Mick 2016-03-01 23:02:40 -08:00
parent 634350018a
commit 1d0bafcc5e
2 changed files with 9 additions and 5 deletions

View File

@ -66,12 +66,16 @@ do_completion.options = [
do_completion.help = [ do_completion.help = [
'Emit bash completion. See help for installation.', 'Emit bash completion. See help for installation.',
'', '',
'Installation:', 'Installation (Mac):',
' {{name}} completion > /usr/local/etc/bash_completion.d/{{name}} # Mac', ' {{name}} completion > /usr/local/etc/bash_completion.d/{{name}}',
' source /usr/local/etc/bash_completion.d/{{name}}',
'',
'Installation (Linux):',
' sudo {{name}} completion > /etc/bash_completion.d/{{name}} # Linux', ' sudo {{name}} completion > /etc/bash_completion.d/{{name}} # Linux',
' source /etc/bash_completion.d/{{name}}',
'', '',
'Alternative installation:', 'Alternative installation:',
' {{name}} completion > ~/.{{name}}.completion', ' {{name}} completion > ~/.{{name}}.completion # or to whatever path',
' echo "source ~/.{{name}}.completion" >> ~/.bashrc', ' echo "source ~/.{{name}}.completion" >> ~/.bashrc',
'', '',
'{{options}}' '{{options}}'

View File

@ -51,10 +51,10 @@ function do_ssh(subcmd, opts, args, callback) {
self.top.log.info({args: args}, 'forking ssh'); self.top.log.info({args: args}, 'forking ssh');
var child = spawn('ssh', args); var child = spawn('ssh', args);
child.stdout.on('data', function (chunk){ child.stdout.on('data', function (chunk) {
process.stdout.write(chunk); process.stdout.write(chunk);
}); });
child.stderr.on('data', function (chunk){ child.stderr.on('data', function (chunk) {
process.stderr.write(chunk); process.stderr.write(chunk);
}); });
child.on('close', function (code) { child.on('close', function (code) {