#392: Little refactoring
This commit is contained in:
@@ -4,7 +4,7 @@ from thefuck.specific.sudo import sudo_support
|
||||
|
||||
@sudo_support
|
||||
def match(command):
|
||||
return command.split_script and os.path.exists(command.split_script[0]) \
|
||||
return command.script_parts and os.path.exists(command.script_parts[0]) \
|
||||
and 'command not found' in command.stderr
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user