Browse Source

fix warning

neilpang 6 years ago
parent
commit
05dea7b22a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      deploy/cpanel_uapi.sh

+ 2 - 2
deploy/cpanel_uapi.sh

@@ -33,8 +33,8 @@ cpanel_uapi_deploy() {
     return 1
   fi
   # read cert and key files and urlencode both
-  _cert=$(cat "$_ccert" | _url_encode)
-  _key=$(cat "$_ckey" | _url_encode)
+  _cert=$(_url_encode < "$_ccert")
+  _key=$(_url_encode < "$_ckey")
 
   _debug _cert "$_cert"
   _debug _key "$_key"