mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-02-01 18:51:51 +00:00
Update build.func
This commit is contained in:
parent
b719dc81d6
commit
06a49017af
@ -173,10 +173,16 @@ header_info() {
|
|||||||
|
|
||||||
mkdir -p /tmp/figlet
|
mkdir -p /tmp/figlet
|
||||||
tar -xf "$temp_dir/figlet.tar.xz" -C /tmp/figlet --strip-components=1
|
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
|
if [ ! -e /usr/local/bin/figlet ]; then
|
||||||
mv /tmp/figlet/figlet /usr/local/bin/
|
mv "$figlet_path" /usr/local/bin/
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf "$temp_dir"
|
rm -rf "$temp_dir"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user