Skip to content

Commit

Permalink
Merge pull request #389 from scorphus/fix-touch
Browse files Browse the repository at this point in the history
Fix `rules.touch` tests
  • Loading branch information
nvbn committed Oct 21, 2015
2 parents f374142 + 590fdba commit 12a33f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions thefuck/rules/touch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re
from thefuck import shells
from thefuck.utils import for_app
from thefuck.shells import and_


@for_app('touch')
Expand All @@ -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)

0 comments on commit 12a33f5

Please sign in to comment.