1
0
Fork 0
mirror of https://github.com/drone/drone-cli.git synced 2024-06-06 05:56:03 +02:00

Merge pull request #69 from jmccann/fix_exec_secrets

Properly get whole value for secrets that contain '='
This commit is contained in:
Brad Rydzewski 2017-10-09 08:44:36 -07:00 committed by GitHub
commit c70270d38e

View File

@ -291,7 +291,7 @@ func exec(c *cli.Context) error {
}
for _, env := range os.Environ() {
k := strings.Split(env, "=")[0]
v := strings.Split(env, "=")[1]
v := strings.SplitN(env, "=", 2)[1]
environ[k] = v
secrets = append(secrets, compiler.Secret{
Name: k,