Skip to content

Commit 6adb811

Browse files
authored
core: fix empty header if header in repo exist (#3536)
1 parent b8c5691 commit 6adb811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/build.func

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ get_header() {
295295
mkdir -p "/usr/local/community-scripts/headers"
296296

297297
# Check if local file already present
298-
if [ ! -f "$local_header_path" ]; then
298+
if [ ! -s "$local_header_path" ]; then
299299
wget -qO "$local_header_path" "$header_url"
300300
if [ $? -ne 0 ]; then
301301
echo -e "${WARN}${BOLD}${YLW}Failed to download header for ${app_name}. No header will be displayed.${CL}"

0 commit comments

Comments
 (0)