1
0
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:
Jens Timmerman 2015-04-20 18:53:55 +02:00
parent f6f6e2223c
commit b4d0b6ad95

View File

@ -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)