mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-07 16:29:18 +00:00
generate_app_name in build.func
This commit is contained in:
parent
5eaee7d637
commit
4e78ca1381
@ -129,6 +129,23 @@ ssh_check() {
|
||||
fi
|
||||
}
|
||||
|
||||
generate_app_name() {
|
||||
if ! command -v figlet &> /dev/null; then
|
||||
sudo apt-get install -y figlet &> /dev/null
|
||||
fi
|
||||
|
||||
# Den Wert der APP-Variable annehmen (kann angepasst werden)
|
||||
APP="$1"
|
||||
|
||||
# ASCII-Art erzeugen und formatieren
|
||||
ascii_art=$(figlet -f slant "$APP")
|
||||
|
||||
# Ausgabe als cat <<EOF
|
||||
cat <<EOF
|
||||
$ascii_art
|
||||
EOF
|
||||
}
|
||||
|
||||
# This function displays the default values for various settings.
|
||||
echo_default() {
|
||||
echo -e "${DGN}Using Distribution: ${BGN}$var_os${CL}"
|
||||
|
Loading…
Reference in New Issue
Block a user