Skip to content

Commit 4e755e4

Browse files
committed
#827: Make cat_dir rule safer
1 parent 1dfd637 commit 4e755e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

thefuck/rules/cat_dir.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import os
2-
32
from thefuck.utils import for_app
43

54

6-
@for_app('cat')
5+
@for_app('cat', at_least=1)
76
def match(command):
87
return (
98
command.output.startswith('cat: ') and

0 commit comments

Comments
 (0)