1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-02-01 17:51:49 +00:00

Update generate-app-headers.sh

This commit is contained in:
CanbiZ 2025-01-24 14:16:47 +01:00 committed by GitHub
parent 3d99b49a99
commit 5415bfd21a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
# 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