Skip to content

Commit

Permalink
fix #3645
Browse files Browse the repository at this point in the history
  • Loading branch information
neil committed Jul 29, 2023
1 parent c42ed9c commit a51025f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,9 @@ _sed_i() {
}

_egrep_o() {
if ! egrep -o "$1" 2>/dev/null; then
if _exists egrep; then
egrep -o "$1" 2>/dev/null;
else
sed -n 's/.*\('"$1"'\).*/\1/p'
fi
}
Expand Down

0 comments on commit a51025f

Please sign in to comment.