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:
commit
c70270d38e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue