From a2f83c896c252e2b98de7c69646ddfc2fd3737aa Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 8 Sep 2025 19:14:41 +0200 Subject: [PATCH] Update common-functions.sh --- scripts/global/common-functions.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/global/common-functions.sh b/scripts/global/common-functions.sh index 41bbe9c..cda8b9b 100644 --- a/scripts/global/common-functions.sh +++ b/scripts/global/common-functions.sh @@ -92,6 +92,9 @@ cleanup_duplicate_repos_pve9() { local cleaned_count=0 declare -A seen_repos + if [ ! -s "$sources_file" ]; then + return 0 + fi while IFS= read -r line || [[ -n "$line" ]]; do if [[ "$line" =~ ^[[:space:]]*# ]] || [[ -z "$line" ]]; then