mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-08 04:44:00 +01:00
removed useless redefined of path variable (#1023)
This commit is contained in:
committed by
Vladimir Iakovlev
parent
60073bea78
commit
25c858c13e
@@ -9,6 +9,6 @@ def match(command):
|
|||||||
|
|
||||||
|
|
||||||
def get_new_command(command):
|
def get_new_command(command):
|
||||||
path = path = re.findall(
|
path = re.findall(
|
||||||
r"touch: (?:cannot touch ')?(.+)/.+'?:", command.output)[0]
|
r"touch: (?:cannot touch ')?(.+)/.+'?:", command.output)[0]
|
||||||
return shell.and_(u'mkdir -p {}'.format(path), command.script)
|
return shell.and_(u'mkdir -p {}'.format(path), command.script)
|
||||||
|
Reference in New Issue
Block a user