build-distro: fix debug mode

parent c7239af1
......@@ -2,7 +2,7 @@
BUILDERDIR=$(realpath "$(dirname "$0")"/..)
#DEBUG=false
DEBUG=0
ALLDISTROS=false
NVIDIA=false
CLEAN=false
......@@ -40,6 +40,9 @@ print_build_info() {
else
print_green "VERSION: $VER"
fi
if [ "$DEBUG" == "1" ]; then
print_yellow "MODE: Debug"
fi
print_green "REPOSITORIES: $REPOS"
}
......@@ -112,7 +115,7 @@ makebuild() {
handle_uncommitted_changes
# Выполнение команды make в зависимости от рабочего окружения и типа сборки
make DISTRO_VERSION="$VER" APTCONF="$APTCONF" "ximper-${desktop_env}${iso_suffix}.iso"
make DEBUG="$DEBUG" DISTRO_VERSION="$VER" APTCONF="$APTCONF" "ximper-${desktop_env}${iso_suffix}.iso"
# Генерация имени файла
DFILENAME="ximper-${desktop_env}${iso_suffix}-${VER}-$(date +"%Y_%m_%d_%H_%M")"
......@@ -183,7 +186,7 @@ while true; do
;;
--debug)
echo "ДЕБАГ ВКЛЮЧЕН"
# DEBUG=true
DEBUG=1
shift
;;
--clean)
......
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