mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-23 05:31:42 +00:00
fix for Mac osx
This commit is contained in:
parent
30bfc2cea7
commit
b19ba13aff
10
acme.sh
10
acme.sh
@ -104,7 +104,8 @@ _info() {
|
|||||||
|
|
||||||
_err() {
|
_err() {
|
||||||
_log "$@"
|
_log "$@"
|
||||||
__red "$(_printargs "$@")\n" >&2
|
__red "$(_printargs "$@")" >&2
|
||||||
|
printf "\n" >&2
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -844,8 +845,11 @@ _time() {
|
|||||||
|
|
||||||
_mktemp() {
|
_mktemp() {
|
||||||
if _exists mktemp ; then
|
if _exists mktemp ; then
|
||||||
mktemp
|
if mktemp 2>/dev/null ; then
|
||||||
return
|
return
|
||||||
|
elif _contains "$(mktemp 2>&1)" "-t prefix" && mktemp -t "$PROJECT_NAME" 2>/dev/null ; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -d "/tmp" ] ; then
|
if [ -d "/tmp" ] ; then
|
||||||
echo "/tmp/${PROJECT_NAME}wefADf24sf.$(_time).tmp"
|
echo "/tmp/${PROJECT_NAME}wefADf24sf.$(_time).tmp"
|
||||||
|
Loading…
Reference in New Issue
Block a user