1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-08 04:44:00 +01: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)