mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 06:34:09 +00:00 
			
		
		
		
	Create rm_root.py
This commit is contained in:
		
							
								
								
									
										8
									
								
								thefuck/rules/rm_root.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								thefuck/rules/rm_root.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| def match(command, settings): | ||||
|     return ('rm' in command.script | ||||
|             and '--help' not in command.script | ||||
|             and '--no-preserve-root' in command.stderr) | ||||
|  | ||||
|  | ||||
| def get_new_command(command, settings): | ||||
|     return '{} --no-preserve-root'.format(command.script) | ||||
		Reference in New Issue
	
	Block a user