Leo Lamprecht
8 years ago
No known key found for this signature in database
GPG Key ID: B08517883D5E0E10
1 changed files with
3 additions and
13 deletions
-
bin/now-deploy.js
|
|
@ -209,25 +209,15 @@ async function sync(token) { |
|
|
|
let repo |
|
|
|
|
|
|
|
if (isRepoPath(rawPath)) { |
|
|
|
process.stdout.write('> Didn\'t find directory. Searching on GitHub') |
|
|
|
|
|
|
|
let dotCount = 0 |
|
|
|
|
|
|
|
const dots = setInterval(() => { |
|
|
|
dotCount++ |
|
|
|
process.stdout.write('.') |
|
|
|
|
|
|
|
if (dotCount === 20) { |
|
|
|
clearInterval(dots) |
|
|
|
} |
|
|
|
const searchMessage = setTimeout(() => { |
|
|
|
console.log('> Didn\'t find directory. Searching on GitHub...') |
|
|
|
}, 500) |
|
|
|
|
|
|
|
try { |
|
|
|
repo = await onGitHub(rawPath, debug) |
|
|
|
} catch (err) {} |
|
|
|
|
|
|
|
clearInterval(dots) |
|
|
|
process.stdout.write('\n') |
|
|
|
clearTimeout(searchMessage) |
|
|
|
} |
|
|
|
|
|
|
|
if (repo) { |
|
|
|