Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
5bba9bdd
Commit
5bba9bdd
authored
Nov 18, 2016
by
neil
Committed by
GitHub
Nov 18, 2016
Browse files
Merge pull request #403 from Neilpang/dev
fix egrep performance
parents
05d7ae4e
a3c0c754
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
5bba9bdd
...
...
@@ -349,10 +349,8 @@ _sed_i() {
}
_egrep_o() {
if
_contains "$(egrep -o 2>&1)" "egrep: illegal option -- o"
; then
if
! egrep -o "$1" 2>/dev/null
; then
sed -n 's/.*\('"$1"'\).*/\1/p'
else
egrep -o "$1"
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment