mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 23:24:54 +00:00
acme.sh: fix "$@" as str (use $*)
This commit is contained in:
parent
a2c64e79ff
commit
a2ae412289
12
acme.sh
12
acme.sh
@ -345,7 +345,7 @@ _debug() {
|
|||||||
fi
|
fi
|
||||||
if [ "${DEBUG:-$DEBUG_LEVEL_NONE}" -ge "$DEBUG_LEVEL_1" ]; then
|
if [ "${DEBUG:-$DEBUG_LEVEL_NONE}" -ge "$DEBUG_LEVEL_1" ]; then
|
||||||
_bash_debug=$(__debug_bash_helper)
|
_bash_debug=$(__debug_bash_helper)
|
||||||
_printargs "${_bash_debug}$@" >&2
|
_printargs "${_bash_debug}$*" >&2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -379,7 +379,7 @@ _debug2() {
|
|||||||
fi
|
fi
|
||||||
if [ "${DEBUG:-$DEBUG_LEVEL_NONE}" -ge "$DEBUG_LEVEL_2" ]; then
|
if [ "${DEBUG:-$DEBUG_LEVEL_NONE}" -ge "$DEBUG_LEVEL_2" ]; then
|
||||||
_bash_debug=$(__debug_bash_helper)
|
_bash_debug=$(__debug_bash_helper)
|
||||||
_printargs "${_bash_debug}$@" >&2
|
_printargs "${_bash_debug}$*" >&2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -412,7 +412,7 @@ _debug3() {
|
|||||||
fi
|
fi
|
||||||
if [ "${DEBUG:-$DEBUG_LEVEL_NONE}" -ge "$DEBUG_LEVEL_3" ]; then
|
if [ "${DEBUG:-$DEBUG_LEVEL_NONE}" -ge "$DEBUG_LEVEL_3" ]; then
|
||||||
_bash_debug=$(__debug_bash_helper)
|
_bash_debug=$(__debug_bash_helper)
|
||||||
_printargs "${_bash_debug}$@" >&2
|
_printargs "${_bash_debug}$*" >&2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -537,7 +537,7 @@ _exists() {
|
|||||||
|
|
||||||
#a + b
|
#a + b
|
||||||
_math() {
|
_math() {
|
||||||
_m_opts="$@"
|
_m_opts=$*
|
||||||
printf "%s" "$(($_m_opts))"
|
printf "%s" "$(($_m_opts))"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2919,9 +2919,9 @@ _exec() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$_EXEC_TEMP_ERR" ]; then
|
if [ "$_EXEC_TEMP_ERR" ]; then
|
||||||
eval "$@ 2>>$_EXEC_TEMP_ERR"
|
eval "$* 2>>$_EXEC_TEMP_ERR"
|
||||||
else
|
else
|
||||||
eval "$@"
|
eval "$*"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user