From 3711d093528cab9f19670b1adec01b308fe68ccb Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Mon, 12 Jun 2017 22:23:45 +0200 Subject: [PATCH] Made using an array for the env variable list work --- bin/now-deploy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/now-deploy.js b/bin/now-deploy.js index e976813..150cdc4 100755 --- a/bin/now-deploy.js +++ b/bin/now-deploy.js @@ -447,14 +447,14 @@ async function sync({ token, config: { currentTeam, user } }) { dotenvConfig = dotenv.parse(dotenvFile) } - const pkgEnv = nowConfig && nowConfig.env + let pkgEnv = nowConfig && nowConfig.env const argEnv = [].concat(argv.env || []) if (pkgEnv && Array.isArray(nowConfig.env)) { const defined = argEnv.join() const askFor = nowConfig.env.filter(item => !defined.includes(`${item}=`)) - nowConfig.env = await envFields(askFor) + pkgEnv = await envFields(askFor) } // Merge `now.env` from package.json with `-e` arguments