diff --git a/bin/now-deploy.js b/bin/now-deploy.js index 69a8ea4..c94bcc1 100755 --- a/bin/now-deploy.js +++ b/bin/now-deploy.js @@ -205,7 +205,12 @@ async function sync(token) { try { await stat(path) } catch (err) { - const repo = await onGitHub(rawPath, debug) + let repo + + if (isRepoPath(rawPath)) { + console.log('> Didn\'t find directory. Searching on GitHub...') + repo = await onGitHub(rawPath, debug) + } if (repo) { path = repo.path @@ -225,8 +230,6 @@ async function sync(token) { } } - process.exit() - let deploymentType let hasPackage