add _upper_case and _lower_case

This commit is contained in:
neilpang 2017-03-08 21:51:25 +08:00
parent e36340ce64
commit c4bf5eef73
1 changed files with 10 additions and 0 deletions

10
acme.sh
View File

@ -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"