Skip to content

Commit b464b3d

Browse files
authored
fix wrong split of annotaiton (#204)
* fix wrong split of annotaiton * increase version
1 parent 04d20c1 commit b464b3d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/interface/cli/helpers/general.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ const prepareKeyValueFromCLIEnvOption = (environmentVariables) => {
6363
let envArray = [];
6464
environmentVariables.constructor !== Array ? envArray.push(environmentVariables) : envArray = environmentVariables;
6565
envArray.forEach(function (vars) {
66+
const separator = '=';
6667
let fields = vars.split('=');
67-
let key = fields[0];
68-
let val = fields[1];
68+
let key = _.chain(vars).split(separator, 1).first().value();
69+
let val = _.split(vars, separator).slice(1).join(separator);
6970
if (_.isUndefined(key) || _.isUndefined(val)) {
7071
throw new CFError('Invalid environment variable format. please enter [key]=[value]');
7172
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.8.61",
3+
"version": "0.8.62",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)