diff --git a/bin/deploy.js b/bin/deploy.js index ed8fa01..5893913 100755 --- a/bin/deploy.js +++ b/bin/deploy.js @@ -3,6 +3,7 @@ var propagit = require('propagit'); var git = require('../lib/git'); var argv = require('../lib/argv'); +if (!argv.hub) return console.error('Specify a --hub or set a remote.'); var p = propagit(argv); p.on('error', function (err) { diff --git a/bin/exec.js b/bin/exec.js index 9a0ae0a..4e1d6b7 100755 --- a/bin/exec.js +++ b/bin/exec.js @@ -1,5 +1,7 @@ #!/usr/bin/env node var argv = require('../lib/argv'); +if (!argv.hub) return console.error('Specify a --hub or set a remote.'); + var propagit = require('propagit'); var git = require('../lib/git'); diff --git a/bin/monitor.js b/bin/monitor.js index b295eb7..9ef800d 100755 --- a/bin/monitor.js +++ b/bin/monitor.js @@ -1,5 +1,7 @@ #!/usr/bin/env node var argv = require('../lib/argv'); +if (!argv.hub) return console.error('Specify a --hub or set a remote.'); + var propagit = require('propagit'); var EventEmitter = require('events').EventEmitter; diff --git a/bin/ps.js b/bin/ps.js index ea37192..600e8d0 100755 --- a/bin/ps.js +++ b/bin/ps.js @@ -5,6 +5,7 @@ var propagit = require('propagit'); var archy = require('archy'); var argv = require('../lib/argv'); +if (!argv.hub) return console.error('Specify a --hub or set a remote.'); var p = propagit(argv); p.on('error', function (err) { diff --git a/bin/spawn.js b/bin/spawn.js index 0f18070..d7c02d7 100755 --- a/bin/spawn.js +++ b/bin/spawn.js @@ -1,5 +1,7 @@ #!/usr/bin/env node var argv = require('../lib/argv'); +if (!argv.hub) return console.error('Specify a --hub or set a remote.'); + var propagit = require('propagit'); var git = require('../lib/git'); diff --git a/bin/stop.js b/bin/stop.js index 422760f..a8a7b7d 100755 --- a/bin/stop.js +++ b/bin/stop.js @@ -1,5 +1,7 @@ #!/usr/bin/env node var argv = require('../lib/argv'); +if (!argv.hub) return console.error('Specify a --hub or set a remote.'); + var propagit = require('propagit'); var git = require('../lib/git');