Browse Source

support for escaping

master
Guillermo Rauch 9 years ago
parent
commit
cedf4a40bf
  1. 9
      bin/now-deploy

9
bin/now-deploy

@ -274,7 +274,8 @@ async function sync (token) {
return process.exit(1); return process.exit(1);
} else { } else {
console.log(`> Reading ${chalk.bold(`"${chalk.bold(key)}"`)} from your env (as no value was specified)`); console.log(`> Reading ${chalk.bold(`"${chalk.bold(key)}"`)} from your env (as no value was specified)`);
val = process.env[key]; // escape value if it begins with @
val = process.env[key].replace(/^\@/, '\\@');
} }
} else { } else {
val = val_; val = val_;
@ -298,7 +299,11 @@ async function sync (token) {
} }
} }
return [key, val]; return [
key,
// add support for escaping the @ as \@
val.replace(/^\\@/, '@')
];
})); }));
let env = {}; let env = {};

Loading…
Cancel
Save