Browse Source

Merge pull request #4 from ms264556/dev

fix acme.sh PR shfmt failure
pull/4832/head
kchiem 1 month ago
committed by GitHub
parent
commit
412e14a41c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      deploy/ruckus.sh

5
deploy/ruckus.sh

@ -65,7 +65,6 @@ ruckus_deploy() {
_debug RUCKUS_USER "$RUCKUS_USER" _debug RUCKUS_USER "$RUCKUS_USER"
_secure_debug RUCKUS_PASS "$RUCKUS_PASS" _secure_debug RUCKUS_PASS "$RUCKUS_PASS"
export HTTPS_INSECURE=1
export ACME_HTTP_NO_REDIRECTS=1 export ACME_HTTP_NO_REDIRECTS=1
_info "Discovering the login URL" _info "Discovering the login URL"
@ -135,11 +134,11 @@ ruckus_deploy() {
} }
_response_code() { _response_code() {
< "$HTTP_HEADER" _egrep_o "^HTTP[^ ]* .*$" | cut -d " " -f 2-100 | tr -d "\f\n" | _egrep_o "^[0-9]*"
_egrep_o <"$HTTP_HEADER" "^HTTP[^ ]* .*$" | cut -d " " -f 2-100 | tr -d "\f\n" | _egrep_o "^[0-9]*"
} }
_response_header() { _response_header() {
< "$HTTP_HEADER" grep -i "^$1:" | cut -d ':' -f 2- | tr -d "\r\n\t "
grep <"$HTTP_HEADER" -i "^$1:" | cut -d ':' -f 2- | tr -d "\r\n\t "
} }
_response_cookie() { _response_cookie() {

Loading…
Cancel
Save