diff --git a/deploy.sh b/deploy.sh index ed87e0d..466cf0f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -62,7 +62,8 @@ fi # Get a space-separated list of the config filenames. # This will be used on the remote server to create symlinks. -CONFIG_FILES=$(ls "$SOURCE_SITES_DIR") +# The `tr` command ensures the list is on a single line, preventing syntax errors. +CONFIG_FILES=$(ls "$SOURCE_SITES_DIR" | tr '\n' ' ') echo "-> Found site config files to process: $CONFIG_FILES" # Find all unique domains for Certbot.