build-distro: rewrite print_build_info

parent 1fb824ee
......@@ -12,25 +12,21 @@ NETWORK=false
. "$(dirname "$0")/common"
print_build_info() {
echo "____________________"
print_blue "VMDIR: $VMDIR"
print_blue "PROFILESDIR: $PROFILESDIR"
print_blue "APTCONF: $APTCONF"
echo "____________________"
echo "--------------------"
if [ "$VER" == "devel" ]; then
print_yellow "VERSION: $VER"
else
print_green "VERSION: $VER"
fi
if [ "$DEBUG" == "1" ]; then
print_yellow "MODE: Debug"
fi
print_green "REPOSITORIES: $REPOS"
print_blue "DE: ${DESKTOP_ENVS[*]}"
[ "$NVIDIA" == true ] || [ "$ALLDISTROS" == true ] && print_blue "NVIDIA: yes"
print_blue "REPOS: $REPOS"
[ "$DEBUG" == "1" ] && print_yellow "DEBUG: on"
echo "--------------------"
}
cleartmp() {
[ "$CLEAN" == true ] || return
echo "____________________"
"$BUILDERDIR"/bin/cleartmp -i
# shellcheck disable=SC2012
......@@ -80,7 +76,6 @@ trap ifexit SIGINT SIGTERM
makebuild() {
cleartmp
echo "____________________"
local build_type=$1
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