mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
World4You using ggrep in solaris
This commit is contained in:
parent
f3b5d5ab7b
commit
9449501537
@ -24,7 +24,7 @@ dns_world4you_add() {
|
||||
fi
|
||||
|
||||
export _H1="Cookie: W4YSESSID=$sessid"
|
||||
paketnr=$(_get "$WORLD4YOU_API/dashboard/paketuebersicht" | grep -B 3 "^\\s*$tld\$" | head -n 1 | sed 's/^.*>\([0-9][0-9]*\)<.*$/\1/')
|
||||
paketnr=$(_get "$WORLD4YOU_API/dashboard/paketuebersicht" | _ggrep -B 3 "^\\s*$tld\$" | head -n 1 | sed 's/^.*>\([0-9][0-9]*\)<.*$/\1/')
|
||||
if [ -z "$paketnr" ]; then
|
||||
_err "Unable to parse paketnr"
|
||||
return 3
|
||||
@ -78,7 +78,7 @@ dns_world4you_rm() {
|
||||
fi
|
||||
|
||||
export _H1="Cookie: W4YSESSID=$sessid"
|
||||
paketnr=$(_get "$WORLD4YOU_API/dashboard/paketuebersicht" | grep -B 3 "^\\s*$tld\$" | head -n 1 | sed 's/^.*>\([0-9][0-9]*\).*$/\1/')
|
||||
paketnr=$(_get "$WORLD4YOU_API/dashboard/paketuebersicht" | _ggrep -B 3 "^\\s*$tld\$" | head -n 1 | sed 's/^.*>\([0-9][0-9]*\).*$/\1/')
|
||||
if [ -z "$paketnr" ]; then
|
||||
_err "Unable to parse paketnr"
|
||||
return 3
|
||||
@ -157,3 +157,13 @@ _login() {
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
_ggrep() {
|
||||
if _exists "ggrep"; then
|
||||
ggrep $@
|
||||
return $?
|
||||
else
|
||||
grep $@
|
||||
return $?
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user