From e16a6eaa30e5cb72327e6343586b0629e5f15396 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Fri, 25 Nov 2016 15:31:18 +0100 Subject: [PATCH] Tell user that we're looking on GitHub --- bin/now-deploy.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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