2
0
mirror of https://github.com/acmesh-official/acme.sh synced 2025-09-01 14:55:26 +00:00

fix for solaris

This commit is contained in:
neil
2023-07-29 23:17:20 +08:00
parent a7f3d413ef
commit 6db8ae451a

View File

@@ -924,10 +924,10 @@ _sed_i() {
} }
_egrep_o() { _egrep_o() {
if _exists egrep; then if _is_solaris; then
egrep -o "$1" 2>/dev/null
else
sed -n 's/.*\('"$1"'\).*/\1/p' sed -n 's/.*\('"$1"'\).*/\1/p'
else
egrep -o "$1"
fi fi
} }