Skip to content

Commit

Permalink
fix wrong split of annotaiton (#204)
Browse files Browse the repository at this point in the history
* fix wrong split of annotaiton

* increase version
  • Loading branch information
verchol committed Jul 9, 2018
1 parent 04d20c1 commit b464b3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/interface/cli/helpers/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ const prepareKeyValueFromCLIEnvOption = (environmentVariables) => {
let envArray = [];
environmentVariables.constructor !== Array ? envArray.push(environmentVariables) : envArray = environmentVariables;
envArray.forEach(function (vars) {
const separator = '=';
let fields = vars.split('=');
let key = fields[0];
let val = fields[1];
let key = _.chain(vars).split(separator, 1).first().value();
let val = _.split(vars, separator).slice(1).join(separator);
if (_.isUndefined(key) || _.isUndefined(val)) {
throw new CFError('Invalid environment variable format. please enter [key]=[value]');
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.8.61",
"version": "0.8.62",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit b464b3d

Please sign in to comment.