mirror of
https://github.com/hiskang/acme.sh
synced 2025-06-23 15:46:14 +00:00
commit
5bba9bddfd
4
acme.sh
4
acme.sh
@ -349,10 +349,8 @@ _sed_i() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_egrep_o() {
|
_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'
|
sed -n 's/.*\('"$1"'\).*/\1/p'
|
||||||
else
|
|
||||||
egrep -o "$1"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user