mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
This commit is contained in:
parent
640c7c5fa3
commit
18e4d270d9
12
acme.sh
12
acme.sh
@ -429,17 +429,27 @@ _secure_debug3() {
|
||||
}
|
||||
|
||||
_upper_case() {
|
||||
if _is_solaris; then
|
||||
tr '[:lower:]' '[:upper:]'
|
||||
else
|
||||
# shellcheck disable=SC2018,SC2019
|
||||
tr 'a-z' 'A-Z'
|
||||
fi
|
||||
}
|
||||
|
||||
_lower_case() {
|
||||
if _is_solaris; then
|
||||
tr '[:upper:]' '[:lower:]'
|
||||
else
|
||||
# shellcheck disable=SC2018,SC2019
|
||||
tr 'A-Z' 'a-z'
|
||||
fi
|
||||
}
|
||||
|
||||
_startswith() {
|
||||
_str="$1"
|
||||
_sub="$2"
|
||||
echo "$_str" | grep "^$_sub" >/dev/null 2>&1
|
||||
echo "$_str" | grep -- "^$_sub" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
_endswith() {
|
||||
|
Loading…
Reference in New Issue
Block a user