1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

Added rule:cp_omitting_directory

This commit is contained in:
Nabeel Valapra 2015-04-20 14:34:09 +05:30
parent ef20a68d56
commit f9f757f618

View 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')