From 5415bfd21af1104e00eed042cb5189f6ce3b4795 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:16:47 +0100 Subject: [PATCH] Update generate-app-headers.sh --- .github/workflows/scripts/generate-app-headers.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/scripts/generate-app-headers.sh b/.github/workflows/scripts/generate-app-headers.sh index 4d92951f..e0811495 100644 --- a/.github/workflows/scripts/generate-app-headers.sh +++ b/.github/workflows/scripts/generate-app-headers.sh @@ -14,9 +14,13 @@ find ./ct -type f -name "*.sh" | sort | while read -r script; do # Generate figlet output figlet_output=$(figlet -f slant "$app_name") - # Write the figlet output to the file - echo "$figlet_output" > "$output_file" - echo "Generated: $output_file" + # Check if figlet output is not empty + if [[ -n "$figlet_output" ]]; then + echo "$figlet_output" > "$output_file" + echo "Generated: $output_file" + else + echo "Figlet failed for $app_name in $script" + fi else echo "Skipped: $output_file already exists" fi