Browse Source

fixed line breaks for support api gcore_cdn (#2237)

pull/2098/head^2
Тимур Яхин 6 years ago
committed by neil
parent
commit
6340704173
  1. 4
      deploy/gcore_cdn.sh

4
deploy/gcore_cdn.sh

@ -27,8 +27,8 @@ gcore_cdn_deploy() {
_debug _cca "$_cca"
_debug _cfullchain "$_cfullchain"
_fullchain=$(tr '\n\r' '@#' <"$_cfullchain" | sed 's/@/\\n/g;s/#/\\r/g')
_key=$(tr '\n\r' '@#' <"$_ckey" | sed 's/@/\\n/g;s/#/\\r/g')
_fullchain=$(tr '\r\n' '*#' <"$_cfullchain" | sed 's/*#/#/g;s/##/#/g;s/#/\\n/g')
_key=$(tr '\r\n' '*#' <"$_ckey" | sed 's/*#/#/g;s/#/\\n/g')
_debug _fullchain "$_fullchain"
_debug _key "$_key"

Loading…
Cancel
Save