From 74fec081047f31571b78e2a202ef786d7baa39c1 Mon Sep 17 00:00:00 2001 From: Azeem Fidahusein Date: Tue, 24 Jun 2025 21:20:30 +0100 Subject: [PATCH] logic --- deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.