mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
fix: 🐛 set envs as environment variable instead of bash variable
Signed-off-by: Prashant Shahi <me@prashantshahi.dev>
This commit is contained in:
parent
c8ecc03ef5
commit
45d05c0599
@ -103,7 +103,7 @@ func (p Plugin) exec(host string, wg *sync.WaitGroup, errChannel chan error) {
|
||||
for _, key := range p.Config.Envs {
|
||||
key = strings.ToUpper(key)
|
||||
if val, found := os.LookupEnv(key); found {
|
||||
env = append(env, key+"="+escapeArg(val))
|
||||
env = append(env, "export "+key+"="+escapeArg(val))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user