build-distro: rewrite print_build_info

parent 1fb824ee
...@@ -12,25 +12,21 @@ NETWORK=false ...@@ -12,25 +12,21 @@ NETWORK=false
. "$(dirname "$0")/common" . "$(dirname "$0")/common"
print_build_info() { print_build_info() {
echo "____________________" echo "--------------------"
print_blue "VMDIR: $VMDIR"
print_blue "PROFILESDIR: $PROFILESDIR"
print_blue "APTCONF: $APTCONF"
echo "____________________"
if [ "$VER" == "devel" ]; then if [ "$VER" == "devel" ]; then
print_yellow "VERSION: $VER" print_yellow "VERSION: $VER"
else else
print_green "VERSION: $VER" print_green "VERSION: $VER"
fi fi
if [ "$DEBUG" == "1" ]; then print_blue "DE: ${DESKTOP_ENVS[*]}"
print_yellow "MODE: Debug" [ "$NVIDIA" == true ] || [ "$ALLDISTROS" == true ] && print_blue "NVIDIA: yes"
fi print_blue "REPOS: $REPOS"
print_green "REPOSITORIES: $REPOS" [ "$DEBUG" == "1" ] && print_yellow "DEBUG: on"
echo "--------------------"
} }
cleartmp() { cleartmp() {
[ "$CLEAN" == true ] || return [ "$CLEAN" == true ] || return
echo "____________________"
"$BUILDERDIR"/bin/cleartmp -i "$BUILDERDIR"/bin/cleartmp -i
# shellcheck disable=SC2012 # shellcheck disable=SC2012
...@@ -80,7 +76,6 @@ trap ifexit SIGINT SIGTERM ...@@ -80,7 +76,6 @@ trap ifexit SIGINT SIGTERM
makebuild() { makebuild() {
cleartmp cleartmp
echo "____________________"
local build_type=$1 local build_type=$1
desktop_env=$2 desktop_env=$2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment