Browse Source

add _upper_case and _lower_case

neilpang 8 years ago
parent
commit
c4bf5eef73
1 changed files with 10 additions and 0 deletions
  1. 10 0
      acme.sh

+ 10 - 0
acme.sh

@@ -299,6 +299,16 @@ _secure_debug3() {
   fi
   fi
 }
 }
 
 
+_upper_case() {
+  # shellcheck disable=SC2018,SC2019
+  tr 'a-z' 'A-Z'
+}
+
+_lower_case() {
+  # shellcheck disable=SC2018,SC2019
+  tr 'A-Z' 'a-z'
+}
+
 _startswith() {
 _startswith() {
   _str="$1"
   _str="$1"
   _sub="$2"
   _sub="$2"