From 90d81c63cae664ec269ee262bcc2a13c61447865 Mon Sep 17 00:00:00 2001 From: kelin Date: Tue, 10 Feb 2026 18:50:01 -0500 Subject: [PATCH] Fix Python script file path passing in localize_yml_file The Python script wasn't receiving the file path correctly because heredoc syntax doesn't support command-line arguments the way it was written. Changed to use environment variable COMPOSE_FILE_PATH instead. This fixes the SyntaxError that occurred during deployment where Python was trying to parse YAML as Python code. --- scripts/ez-homelab.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ez-homelab.sh b/scripts/ez-homelab.sh index 5aaf6d4..0704e71 100755 --- a/scripts/ez-homelab.sh +++ b/scripts/ez-homelab.sh @@ -232,12 +232,12 @@ localize_yml_file() { fi # Use Python to process only labels and x-dockge sections - python3 << 'PYEOF' "$file_path" + COMPOSE_FILE_PATH="$file_path" python3 << 'PYEOF' import sys import re import os -file_path = sys.argv[1] +file_path = os.environ.get('COMPOSE_FILE_PATH') with open(file_path, 'r') as f: lines = f.readlines()