1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-20 20:09:07 +00:00

Merge pull request #389 from scorphus/fix-touch

Fix `rules.touch` tests
This commit is contained in:
Vladimir Iakovlev 2015-10-21 17:50:09 +08:00
commit 12a33f56bc
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import re
from thefuck import shells
from thefuck.utils import for_app
from thefuck.shells import and_
@for_app('touch')
@ -10,4 +10,4 @@ def match(command):
def get_new_command(command):
path = re.findall(r"touch: cannot touch '(.+)/.+':", command.stderr)[0]
return and_(u'mkdir -p {}'.format(path), command.script)
return shells.and_(u'mkdir -p {}'.format(path), command.script)