mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-13 22:28:33 +00:00
Update rm_dir.py
`rm` of a directory should result in rmdir, not `rm -rf`
This commit is contained in:
parent
f6f6e2223c
commit
b4d0b6ad95
@ -6,4 +6,4 @@ def match(command, settings):
|
||||
|
||||
|
||||
def get_new_command(command, settings):
|
||||
return re.sub('^rm (.*)', 'rm -rf \\1', command.script)
|
||||
return re.sub('^rm (.*)', 'rmdir \\1', command.script)
|
||||
|
Loading…
x
Reference in New Issue
Block a user