mirror of
				https://github.com/appleboy/drone-ssh.git
				synced 2025-10-29 00:51:15 +08:00 
			
		
		
		
	fix: return escapearg
This commit is contained in:
		
							parent
							
								
									0ea3c7a4cc
								
							
						
					
					
						commit
						526388ecf7
					
				| @ -104,7 +104,7 @@ func (p Plugin) exec(host string, wg *sync.WaitGroup, errChannel chan error) { | |||||||
| 	for _, key := range p.Config.Envs { | 	for _, key := range p.Config.Envs { | ||||||
| 		key = strings.ToUpper(key) | 		key = strings.ToUpper(key) | ||||||
| 		if val, found := os.LookupEnv(key); found { | 		if val, found := os.LookupEnv(key); found { | ||||||
| 			env = append(env, p.format(p.Config.EnvsFormat, "{NAME}", key, "{VALUE}", val)) | 			env = append(env, p.format(p.Config.EnvsFormat, "{NAME}", key, "{VALUE}", escapeArg(val))) | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 iam1337
						iam1337