mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-02-17 09:48:50 +08:00
@@ -91,7 +91,8 @@ func (p Plugin) Exec() error {
|
|||||||
|
|
||||||
env := []string{}
|
env := []string{}
|
||||||
for _, key := range p.Config.Envs {
|
for _, key := range p.Config.Envs {
|
||||||
val := os.Getenv(strings.ToUpper(key))
|
key = strings.ToUpper(key)
|
||||||
|
val := os.Getenv(key)
|
||||||
val = strings.Replace(val, " ", "", -1)
|
val = strings.Replace(val, " ", "", -1)
|
||||||
env = append(env, key+"="+val)
|
env = append(env, key+"="+val)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user