mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 15:12:20 +00:00 
			
		
		
		
	Merge branch 'master' of git://github.com/NabeelValapra/thefuck into NabeelValapra-master
This commit is contained in:
		
							
								
								
									
										10
									
								
								thefuck/rules/cp_omitting_directory.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								thefuck/rules/cp_omitting_directory.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | def match(command, settings): | ||||||
|  |     if 'cp: omitting directory' in command.stderr.lower(): | ||||||
|  |         return True | ||||||
|  |     return False | ||||||
|  |  | ||||||
|  |  | ||||||
|  | def get_new_command(command, settings): | ||||||
|  |     return command.script.replace('cp', 'cp -r')  | ||||||
|  |  | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user