Browse Source

fix format

master
neilpang 8 years ago
parent
commit
c3b1eb0837
  1. 132
      acme.sh

132
acme.sh

@ -369,205 +369,205 @@ _url_encode() {
for _hex_code in $_hex_str; do for _hex_code in $_hex_str; do
#upper case #upper case
case "${_hex_code}" in case "${_hex_code}" in
"41" )
"41")
printf "%s" "A" printf "%s" "A"
;; ;;
"42" )
"42")
printf "%s" "B" printf "%s" "B"
;; ;;
"43" )
"43")
printf "%s" "C" printf "%s" "C"
;; ;;
"44" )
"44")
printf "%s" "D" printf "%s" "D"
;; ;;
"45" )
"45")
printf "%s" "E" printf "%s" "E"
;; ;;
"46" )
"46")
printf "%s" "F" printf "%s" "F"
;; ;;
"47" )
"47")
printf "%s" "G" printf "%s" "G"
;; ;;
"48" )
"48")
printf "%s" "H" printf "%s" "H"
;; ;;
"49" )
"49")
printf "%s" "I" printf "%s" "I"
;; ;;
"4a" )
"4a")
printf "%s" "J" printf "%s" "J"
;; ;;
"4b" )
"4b")
printf "%s" "K" printf "%s" "K"
;; ;;
"4c" )
"4c")
printf "%s" "L" printf "%s" "L"
;; ;;
"4d" )
"4d")
printf "%s" "M" printf "%s" "M"
;; ;;
"4e" )
"4e")
printf "%s" "N" printf "%s" "N"
;; ;;
"4f" )
"4f")
printf "%s" "O" printf "%s" "O"
;; ;;
"50" )
"50")
printf "%s" "P" printf "%s" "P"
;; ;;
"51" )
"51")
printf "%s" "Q" printf "%s" "Q"
;; ;;
"52" )
"52")
printf "%s" "R" printf "%s" "R"
;; ;;
"53" )
"53")
printf "%s" "S" printf "%s" "S"
;; ;;
"54" )
"54")
printf "%s" "T" printf "%s" "T"
;; ;;
"55" )
"55")
printf "%s" "U" printf "%s" "U"
;; ;;
"56" )
"56")
printf "%s" "V" printf "%s" "V"
;; ;;
"57" )
"57")
printf "%s" "W" printf "%s" "W"
;; ;;
"58" )
"58")
printf "%s" "X" printf "%s" "X"
;; ;;
"59" )
"59")
printf "%s" "Y" printf "%s" "Y"
;; ;;
"5a" )
"5a")
printf "%s" "Z" printf "%s" "Z"
;; ;;
#lower case #lower case
"61" )
"61")
printf "%s" "a" printf "%s" "a"
;; ;;
"62" )
"62")
printf "%s" "b" printf "%s" "b"
;; ;;
"63" )
"63")
printf "%s" "c" printf "%s" "c"
;; ;;
"64" )
"64")
printf "%s" "d" printf "%s" "d"
;; ;;
"65" )
"65")
printf "%s" "e" printf "%s" "e"
;; ;;
"66" )
"66")
printf "%s" "f" printf "%s" "f"
;; ;;
"67" )
"67")
printf "%s" "g" printf "%s" "g"
;; ;;
"68" )
"68")
printf "%s" "h" printf "%s" "h"
;; ;;
"69" )
"69")
printf "%s" "i" printf "%s" "i"
;; ;;
"6a" )
"6a")
printf "%s" "j" printf "%s" "j"
;; ;;
"6b" )
"6b")
printf "%s" "k" printf "%s" "k"
;; ;;
"6c" )
"6c")
printf "%s" "l" printf "%s" "l"
;; ;;
"6d" )
"6d")
printf "%s" "m" printf "%s" "m"
;; ;;
"6e" )
"6e")
printf "%s" "n" printf "%s" "n"
;; ;;
"6f" )
"6f")
printf "%s" "o" printf "%s" "o"
;; ;;
"70" )
"70")
printf "%s" "p" printf "%s" "p"
;; ;;
"71" )
"71")
printf "%s" "q" printf "%s" "q"
;; ;;
"72" )
"72")
printf "%s" "r" printf "%s" "r"
;; ;;
"73" )
"73")
printf "%s" "s" printf "%s" "s"
;; ;;
"74" )
"74")
printf "%s" "t" printf "%s" "t"
;; ;;
"75" )
"75")
printf "%s" "u" printf "%s" "u"
;; ;;
"76" )
"76")
printf "%s" "v" printf "%s" "v"
;; ;;
"77" )
"77")
printf "%s" "w" printf "%s" "w"
;; ;;
"78" )
"78")
printf "%s" "x" printf "%s" "x"
;; ;;
"79" )
"79")
printf "%s" "y" printf "%s" "y"
;; ;;
"7a" )
"7a")
printf "%s" "z" printf "%s" "z"
;; ;;
#numbers #numbers
"30" )
"30")
printf "%s" "0" printf "%s" "0"
;; ;;
"31" )
"31")
printf "%s" "1" printf "%s" "1"
;; ;;
"32" )
"32")
printf "%s" "2" printf "%s" "2"
;; ;;
"33" )
"33")
printf "%s" "3" printf "%s" "3"
;; ;;
"34" )
"34")
printf "%s" "4" printf "%s" "4"
;; ;;
"35" )
"35")
printf "%s" "5" printf "%s" "5"
;; ;;
"36" )
"36")
printf "%s" "6" printf "%s" "6"
;; ;;
"37" )
"37")
printf "%s" "7" printf "%s" "7"
;; ;;
"38" )
"38")
printf "%s" "8" printf "%s" "8"
;; ;;
"39" )
"39")
printf "%s" "9" printf "%s" "9"
;; ;;
"2d" )
"2d")
printf "%s" "-" printf "%s" "-"
;; ;;
"5f" )
"5f")
printf "%s" "_" printf "%s" "_"
;; ;;
"2e" )
"2e")
printf "%s" "." printf "%s" "."
;; ;;
"7e" )
"7e")
printf "%s" "~" printf "%s" "~"
;; ;;
#other hex #other hex

Loading…
Cancel
Save