2
0
mirror of https://github.com/acmesh-official/acme.sh synced 2025-08-31 06:15:14 +00:00
neil
2023-07-29 15:32:50 +08:00
parent c42ed9c693
commit a51025fe8f

View File

@@ -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
}