Leo Lamprecht
8 years ago
No known key found for this signature in database
GPG Key ID: EF804E3FF4BBA8AB
1 changed files with
5 additions and
3 deletions
-
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
|
|
|
|