mirror of
				https://github.com/Tim-Paik/neutauri.git
				synced 2024-10-12 23:29:41 +00:00 
			
		
		
		
	fix: initialization_script now read the corresponding file instead of directly executing
This commit is contained in:
		| @ -284,7 +284,13 @@ impl Config { | ||||
|                 Some(path) => fs::read_to_string(path.as_path()).ok(), | ||||
|                 None => None, | ||||
|             }, | ||||
|             initialization_script: self.initialization_script.clone(), | ||||
|             initialization_script: { | ||||
|                 if let Some(script_path) = &self.initialization_script { | ||||
|                     fs::read_to_string(Path::new(script_path)).ok() | ||||
|                 } else { | ||||
|                     None | ||||
|                 } | ||||
|             }, | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user