build-distro: fix debug mode

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