mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-10 00:11:45 +00:00
_readlink
This commit is contained in:
parent
839bf0e2c9
commit
6c4cc357b5
12
acme.sh
12
acme.sh
@ -1594,14 +1594,18 @@ _starttlsserver() {
|
|||||||
_readlink() {
|
_readlink() {
|
||||||
_rf="$1"
|
_rf="$1"
|
||||||
if ! readlink -f "$_rf" 2>/dev/null; then
|
if ! readlink -f "$_rf" 2>/dev/null; then
|
||||||
if _startswith "$_rf" "\./$PROJECT_ENTRY"; then
|
if _startswith "$_rf" "/"; then
|
||||||
printf -- "%s" "$(pwd)/$PROJECT_ENTRY"
|
echo "$_rf"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
readlink "$_rf"
|
echo "$(pwd)/$_rf" | _conapath
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_conapath() {
|
||||||
|
sed "s#/\./#/#g"
|
||||||
|
}
|
||||||
|
|
||||||
__initHome() {
|
__initHome() {
|
||||||
if [ -z "$_SCRIPT_HOME" ]; then
|
if [ -z "$_SCRIPT_HOME" ]; then
|
||||||
if _exists readlink && _exists dirname; then
|
if _exists readlink && _exists dirname; then
|
||||||
@ -4440,7 +4444,7 @@ _process() {
|
|||||||
HTTPS_INSECURE="1"
|
HTTPS_INSECURE="1"
|
||||||
;;
|
;;
|
||||||
--ca-bundle)
|
--ca-bundle)
|
||||||
_ca_bundle="$(readlink -f "$2")"
|
_ca_bundle="$(_readlink -f "$2")"
|
||||||
CA_BUNDLE="$_ca_bundle"
|
CA_BUNDLE="$_ca_bundle"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user