Browse Source

fix bug."head -c" in function _ali_nonce not supported by solaris

pull/410/head
lc 9 years ago
parent
commit
70d71c991a
  1. 2
      dnsapi/dns_ali.sh

2
dnsapi/dns_ali.sh

@ -105,7 +105,7 @@ _ali_urlencode() {
}
_ali_nonce() {
cat /dev/urandom | _head_n 1 | _digest "sha256" hex | cut -c 1-31
< /dev/urandom | _head_n 1 | _digest "sha256" hex | cut -c 1-31
}
_check_exist_query() {

Loading…
Cancel
Save