mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	Shell: return the exit code of a '-c' command execution
This commit is contained in:
		
							parent
							
								
									d1e3193339
								
							
						
					
					
						commit
						1d11b62ca4
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -176,8 +176,7 @@ int main(int argc, char** argv) | |||
| 
 | ||||
|     if (command_to_run) { | ||||
|         dbgln("sh -c '{}'\n", command_to_run); | ||||
|         shell->run_command(command_to_run); | ||||
|         return 0; | ||||
|         return shell->run_command(command_to_run); | ||||
|     } | ||||
| 
 | ||||
|     if (file_to_read_from && StringView { "-" } != file_to_read_from) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nick Vella
						Nick Vella