1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-31 02:01:13 +00:00

Update rm_root.py

This commit is contained in:
SpyCheese 2015-04-19 09:12:19 +05:00
parent 2a79a5e413
commit f113bae59d

View File

@ -1,6 +1,6 @@
def match(command, settings):
return ('rm' in command.script
and '--help' not in command.script
return ('/' in command.script
and '--no-preserve-root' not in command.script
and '--no-preserve-root' in command.stderr)