mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-18 03:02:34 +01:00
Update rm_root.py
Okay, there was an incorrect match function.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
def match(command, settings):
|
def match(command, settings):
|
||||||
return ('/' in command.script
|
return ('/' in command.script.split()
|
||||||
and '--no-preserve-root' not in command.script
|
and '--no-preserve-root' not in command.script
|
||||||
and '--no-preserve-root' in command.stderr)
|
and '--no-preserve-root' in command.stderr)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user