Trimmed away extra white spaces

Prettyprinting
This commit is contained in:
Santeri Kannisto 2018-06-02 08:33:40 +02:00 committed by GitHub
parent ecc71d1172
commit e481be1097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ __urlencode() {
c=${string:$pos:1} c=${string:$pos:1}
case "$c" in case "$c" in
[-_.~a-zA-Z0-9] ) o="${c}" ;; [-_.~a-zA-Z0-9] ) o="${c}" ;;
* ) printf -v o '%%%02x' "'$c" *) printf -v o '%%%02x' "'$c"
esac esac
encoded+="${o}" encoded+="${o}"
done done
@ -55,7 +55,7 @@ cpanel_uapi_deploy() {
_certstr=$(cat "$_ccert") _certstr=$(cat "$_ccert")
_keystr=$(cat "$_ckey") _keystr=$(cat "$_ckey")
_cert=$(__urlencode "$_certstr") _cert=$(__urlencode "$_certstr")
_key=$(__urlencode "$_keystr") _key=$(__urlencode "$_keystr")
_debug _cert "$_cert" _debug _cert "$_cert"
_debug _key "$_key" _debug _key "$_key"