Browse Source

fix for solaris

pull/4720/head
neil 1 year ago
parent
commit
15ee036db1
  1. 12
      acme.sh

12
acme.sh

@ -923,11 +923,17 @@ _sed_i() {
fi fi
} }
_egrep_o() {
if _is_solaris; then
sed -n 's/.*\('"$1"'\).*/\1/p'
if [ "$(echo abc | egrep -o b 2>/dev/null)" = "b" ]; then
__USE_EGREP=1
else else
__USE_EGREP=""
fi
_egrep_o() {
if [ "$__USE_EGREP" ]; then
egrep -o "$1" egrep -o "$1"
else
sed -n 's/.*\('"$1"'\).*/\1/p'
fi fi
} }

Loading…
Cancel
Save