From 645af61fcbe617b5ebd274e405170e02227f5374 Mon Sep 17 00:00:00 2001 From: Alin Mr Date: Sat, 31 Dec 2022 08:20:03 +0200 Subject: [PATCH] acme.sh: quote path-like $VARS, $(CMD)'s --- acme.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acme.sh b/acme.sh index 740b21ea..a11b77a5 100755 --- a/acme.sh +++ b/acme.sh @@ -1530,7 +1530,7 @@ createDomainKey() { if [ ! -f "$CERT_KEY_PATH" ] || [ ! -s "$CERT_KEY_PATH" ] || ([ "$FORCE" ] && ! [ "$_ACME_IS_RENEW" ]) || [ "$Le_ForceNewDomainKey" = "1" ]; then if _createkey "$_cdl" "$CERT_KEY_PATH"; then _savedomainconf Le_Keylength "$_cdl" - _info "The domain key is here: $(__green $CERT_KEY_PATH)" + _info "The domain key is here: $(__green "$CERT_KEY_PATH")" return 0 else _err "Can not create domain key" @@ -5927,7 +5927,7 @@ _install_win_taskscheduler() { _err "schtasks.exe is not found, are you on Windows?" return 1 fi - _winbash="$(cygpath -w $(which bash))" + _winbash="$(cygpath -w "$(which bash)")" _debug _winbash "$_winbash" if [ -z "$_winbash" ]; then _err "can not find bash path" @@ -6180,7 +6180,7 @@ remove() { fi if mv "$DOMAIN_CONF" "$_removed_conf"; then - _info "$Le_Domain is removed, the key and cert files are in $(__green $DOMAIN_PATH)" + _info "$Le_Domain is removed, the key and cert files are in $(__green "$DOMAIN_PATH")" _info "You can remove them by yourself." return 0 else @@ -7180,7 +7180,7 @@ info() { ( _initpath "$_domain" "$_ecc" echo "DOMAIN_CONF=$DOMAIN_CONF" - for seg in $(cat $DOMAIN_CONF | cut -d = -f 1); do + for seg in $(cat "$DOMAIN_CONF" | cut -d = -f 1); do echo "$seg=$(_readdomainconf "$seg")" done )