File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ password = YourSuperSecurePassword#@#$*
17
17
# verify sets whether the script will attempt to verify the server's certificate with a HTTPS
18
18
# connection. Set to true if you're using a HTTPS connection to a remote host. If connect_host
19
19
# is set to localhost (or is unset), set to false. Default is false.
20
- # verify = false
20
+ # verify = true
21
21
22
22
# privkey_path is the path to the certificate private key on your system. Default
23
23
# assumes you're using acme.sh:
Original file line number Diff line number Diff line change @@ -55,21 +55,15 @@ _parse_ini() {
55
55
if [ ! -f " $inFile " ]; then _err " File $inFile not found!" ; exit 1; fi
56
56
57
57
local IFS=" ="
58
- echo " []" | cat " $inFile " - | sed ' s/\t/ /g;s/^ +//;s/ +$//;/^#/d;/^$/d' | while read name value; do
59
- name=${name/ / }
58
+ echo " []" | cat " $inFile " - | sed ' s/\\ t/ /g;s/^ +//;s/ +$//;/^#/d;/^$/d' | while read name value; do
59
+ name=$( echo $ {name} | sed ' s/ *$// ' )
60
60
[ -z " $name " ] && continue
61
61
62
62
local IFS=" "
63
- if [ " ${name: 0: 1} " == " [" ]; then
64
- section=${name/ ' [' / }
65
- section=${section/ ' ]' / }
63
+ if [ $( echo ${name} | cut -c 1-1) == " [" ]; then
64
+ section=$( echo ${name} | sed ' s/\[//;s/\]//' )
66
65
else
67
- value=${value/# / }
68
- value=${value/% / }
69
- value=${value/# \" / }
70
- value=${value/% \" / }
71
-
72
- value=${value// \" / \\\" }
66
+ value=$( echo ${value} | sed ' s/[#%][ "]//;s/"/\\"/' )
73
67
echo " ${prefix} __${section} __${name} =\" ${value} \" "
74
68
fi
75
69
local IFS=" ="
You can’t perform that action at this time.
0 commit comments