From 6adb811adf5553b2c518bf1f2a08cfe6c0971c78 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:40:35 +0200 Subject: [PATCH] core: fix empty header if header in repo exist (#3536) --- misc/build.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/build.func b/misc/build.func index f50d4db37..af23b09c0 100644 --- a/misc/build.func +++ b/misc/build.func @@ -295,7 +295,7 @@ get_header() { mkdir -p "/usr/local/community-scripts/headers" # Check if local file already present - if [ ! -f "$local_header_path" ]; then + if [ ! -s "$local_header_path" ]; then wget -qO "$local_header_path" "$header_url" if [ $? -ne 0 ]; then echo -e "${WARN}${BOLD}${YLW}Failed to download header for ${app_name}. No header will be displayed.${CL}"