Replace (almost) all instance of script.split

This commit is contained in:
mcarton
2015-10-28 16:43:24 +01:00
parent 2d995d464f
commit e71a3e0cdb
19 changed files with 69 additions and 50 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ from thefuck.specific.sudo import sudo_support
@sudo_support
def match(command):
return os.path.exists(command.script.split()[0]) \
return command.split_script and os.path.exists(command.split_script[0]) \
and 'command not found' in command.stderr