2
0
mirror of https://github.com/acmesh-official/acme.sh synced 2025-08-30 22:05:34 +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() {
if _exists egrep; then
egrep -o "$1" 2>/dev/null
else
if _is_solaris; then
sed -n 's/.*\('"$1"'\).*/\1/p'
else
egrep -o "$1"
fi
}