1
0
mirror of https://github.com/hiskaNG/acme.sh.git synced 2026-08-20 12:52:56 +00:00

Update cookie retrieval using _egrep_o (thanks @Neilpang)

This commit is contained in:
Armando Lüscher
2016-12-29 16:12:42 +01:00
parent afa3fc8bf9
commit ce9fae82bd
+1 -1
View File
@@ -134,7 +134,7 @@ _cyon_print_header() {
}
_cyon_get_cookie_header() {
printf "%s" "$(sed -n 's/Set-\(Cookie:.*cyon=[^;]*\).*/\1/p' "$HTTP_HEADER" | _tail_n 1)"
printf "Cookie: %s" "$(cat "$HTTP_HEADER" | grep "cyon=" | grep "^Set-Cookie:" | _tail_n 1 | _egrep_o 'cyon=[^;]*;' | tr -d ';')"
}
_cyon_login() {