mirror of https://github.com/chaos-mesh/chaosd.git
				
				
				
			Fix: Set BYTEMAN_HOME environment variable when not set
- Set the BYTEMAN_HOME environment variable to the correct path if it's not already set. - Used fmt.Sprintf to dynamically construct the path for BYTEMAN_HOME.
This commit is contained in:
		
							parent
							
								
									bc039aa483
								
							
						
					
					
						commit
						4ca17f54c9
					
				| 
						 | 
				
			
			@ -37,6 +37,7 @@ func SetRuntimeEnv() error {
 | 
			
		|||
		if err != nil {
 | 
			
		||||
			return err
 | 
			
		||||
		}
 | 
			
		||||
		bytemanHome = fmt.Sprintf("%s/tools/byteman", wd)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	path := os.Getenv("PATH")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue