diff --git a/thefuck/rules/touch.py b/thefuck/rules/touch.py index 31e9fcef..56d86c03 100644 --- a/thefuck/rules/touch.py +++ b/thefuck/rules/touch.py @@ -9,6 +9,6 @@ def match(command): def get_new_command(command): - path = path = re.findall( + path = re.findall( r"touch: (?:cannot touch ')?(.+)/.+'?:", command.output)[0] return shell.and_(u'mkdir -p {}'.format(path), command.script)