mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-10-23 06:01:53 +00:00
forbid spaces in the --home/--config-home path https://github.com/acmesh-official/acme.sh/issues/2163
This commit is contained in:
1 parent
5038d12d62
commit
92a1b47108
1 file changed
+11
@@ -2842,6 +2842,17 @@ __initHome() {
|
||||
_debug "Using config home: $LE_CONFIG_HOME"
|
||||
export LE_CONFIG_HOME
|
||||
|
||||
# Paths with whitespace break the unquoted $_CURL/$_WGET command expansion,
|
||||
# so fail early with a clear error instead of a cryptic curl/wget failure.
|
||||
# https://github.com/acmesh-official/acme.sh/issues/2163
|
||||
case "$LE_WORKING_DIR$LE_CONFIG_HOME" in
|
||||
*" "*)
|
||||
_err "The --home or --config-home path can not contain spaces: '$LE_WORKING_DIR'"
|
||||
_err "Please install $PROJECT_NAME to a path without spaces."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
_DEFAULT_ACCOUNT_CONF_PATH="$LE_CONFIG_HOME/account.conf"
|
||||
|
||||
if [ -z "$ACCOUNT_CONF_PATH" ]; then
|
||||
|
||||