Skip to content

Commit 2859be6

Browse files
committed
wrong grep option fixed, bumped version number
1 parent 9722c2b commit 2859be6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rfc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
#
55
# Author: Baptiste Fontaine
66
# License: MIT
7-
# Version: 0.2.0
7+
# Version: 0.2.1
88
#
99
# URI: github.com/bfontaine/rfc
1010
#
1111

1212
__rfc() {
1313

14-
local VERSION='0.2.0'
14+
local VERSION='0.2.1'
1515
local PAGER=${PAGER:-less}
1616
local fetch_cmd=${CURL:-curl}
1717
local rfc_dir="${RFC_DIR:-$HOME/.RFCs}"
@@ -133,7 +133,7 @@ __rfc() {
133133
rm -f $name
134134
[ -d in-notes ] && cd in-notes
135135
for f in `\ls -1 rfc*.txt`; do
136-
echo "$f" | grep -s "^rfc\d\+\.txt$"
136+
echo "$f" | grep -q "^rfc\d\+\.txt$"
137137
if [ "$?" -eq "0" ]; then
138138
n=${f##rfc};
139139
n=${n%%.txt};

0 commit comments

Comments
 (0)