mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 10:11:14 +00:00
Added rule:cp_omitting_directory
This commit is contained in:
parent
ef20a68d56
commit
f9f757f618
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')
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user