mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-02-01 14:51:50 +00:00
Update generate-app-headers.sh
This commit is contained in:
parent
3d99b49a99
commit
5415bfd21a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user