Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
e384df30
Unverified
Commit
e384df30
authored
Nov 19, 2021
by
neil
Committed by
GitHub
Nov 19, 2021
Browse files
Merge pull request #3813 from acmesh-official/dev
fix
https://github.com/acmesh-official/acme.sh/issues/3806
parents
5e574a35
18e4d270
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
e384df30
...
@@ -429,17 +429,27 @@ _secure_debug3() {
...
@@ -429,17 +429,27 @@ _secure_debug3() {
}
}
_upper_case
()
{
_upper_case
()
{
tr
'[:lower:]'
'[:upper:]'
if
_is_solaris
;
then
tr
'[:lower:]'
'[:upper:]'
else
# shellcheck disable=SC2018,SC2019
tr
'a-z'
'A-Z'
fi
}
}
_lower_case
()
{
_lower_case
()
{
tr
'[:upper:]'
'[:lower:]'
if
_is_solaris
;
then
tr
'[:upper:]'
'[:lower:]'
else
# shellcheck disable=SC2018,SC2019
tr
'A-Z'
'a-z'
fi
}
}
_startswith
()
{
_startswith
()
{
_str
=
"
$1
"
_str
=
"
$1
"
_sub
=
"
$2
"
_sub
=
"
$2
"
echo
"
$_str
"
|
grep
"^
$_sub
"
>
/dev/null 2>&1
echo
"
$_str
"
|
grep
--
"^
$_sub
"
>
/dev/null 2>&1
}
}
_endswith
()
{
_endswith
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment