Explorar o código

add _upper_case and _lower_case

neilpang %!s(int64=8) %!d(string=hai) anos
pai
achega
c4bf5eef73
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      acme.sh

+ 10 - 0
acme.sh

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