1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-02-01 16:31:50 +00:00

Update build.func

This commit is contained in:
CanbiZ 2024-12-28 19:46:30 +01:00 committed by GitHub
parent b719dc81d6
commit 06a49017af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,10 +173,16 @@ header_info() {
mkdir -p /tmp/figlet
tar -xf "$temp_dir/figlet.tar.xz" -C /tmp/figlet --strip-components=1
chmod +x /tmp/figlet/figlet
# Search for the figlet executable in the extracted folder
figlet_path=$(find /tmp/figlet -name 'figlet' -type f)
if [ -n "$figlet_path" ]; then
chmod +x "$figlet_path"
if [ ! -e /usr/local/bin/figlet ]; then
mv /tmp/figlet/figlet /usr/local/bin/
if [ ! -e /usr/local/bin/figlet ]; then
mv "$figlet_path" /usr/local/bin/
fi
fi
rm -rf "$temp_dir"