Browse Source

Deploy cwd if no path defined

master
Leo Lamprecht 8 years ago
parent
commit
8b56a13221
No known key found for this signature in database GPG Key ID: EF804E3FF4BBA8AB
  1. 8
      bin/now-deploy.js

8
bin/now-deploy.js

@ -120,14 +120,16 @@ const help = () => {
let path = argv._[0]
if (path === null) {
path = process.cwd()
} else {
if (path) {
// if path is relative: resolve
// if path is absolute: clear up strange `/` etc
path = resolve(process.cwd(), path)
} else {
path = process.cwd()
}
console.log(path)
const exit = code => {
// we give stdout some time to flush out
// because there's a node bug where

Loading…
Cancel
Save