From 30b80f348968e5b9e0cb86d1933f33bccb980fbb Mon Sep 17 00:00:00 2001 From: cxgreat2014 Date: Wed, 4 Mar 2020 15:28:38 +0800 Subject: [PATCH] Use `tr '[:lower:]' '[:upper:]'` to upcase --- dnsapi/dns_ali.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_ali.sh b/dnsapi/dns_ali.sh index 6936444e..d1f501d1 100755 --- a/dnsapi/dns_ali.sh +++ b/dnsapi/dns_ali.sh @@ -310,7 +310,7 @@ _ali_url_encode(){ ;; #other hex *) - printf '%%%s' "$_hex_code" | tr 'a-z' 'A-Z' + printf '%%%s' "$_hex_code" | tr '[:lower:]' '[:upper:]' ;; esac done