diff --git a/bin/now-alias.js b/bin/now-alias.js index c8039b6..a66a7c9 100755 --- a/bin/now-alias.js +++ b/bin/now-alias.js @@ -25,6 +25,7 @@ const argv = minimist(process.argv.slice(2), { token: 't' } }) + const subcommand = argv._[0] // options diff --git a/bin/now-dns.js b/bin/now-dns.js index b56fca2..b521350 100755 --- a/bin/now-dns.js +++ b/bin/now-dns.js @@ -24,6 +24,7 @@ const argv = minimist(process.argv.slice(2), { token: 't' } }) + const subcommand = argv._[0] // options diff --git a/bin/now-domains.js b/bin/now-domains.js index a1b87e2..a039583 100755 --- a/bin/now-domains.js +++ b/bin/now-domains.js @@ -26,6 +26,7 @@ const argv = minimist(process.argv.slice(2), { token: 't' } }) + const subcommand = argv._[0] // options diff --git a/lib/index.js b/lib/index.js index 2de724f..4cd6e99 100644 --- a/lib/index.js +++ b/lib/index.js @@ -129,6 +129,7 @@ module.exports = class Now extends EventEmitter { // array has a group of files with the same sha but different path const files = await Promise.all(Array.prototype.concat.apply([], await Promise.all((Array.from(this._files)).map(async ([sha, {data, names}]) => { const statFn = followSymlinks ? stat : lstat + return await names.map(async name => { let mode