From 7ecbb4710518cea26765546c522989abb4d1a786 Mon Sep 17 00:00:00 2001 From: teldra Date: Tue, 8 Feb 2022 21:09:56 +0100 Subject: [PATCH] progress --- etc/functions | 2 +- main.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/functions b/etc/functions index 18a7e56..9df019f 100644 --- a/etc/functions +++ b/etc/functions @@ -5,7 +5,7 @@ err() { } header() { - if [ "$DEBUG" ]; then + if [ "$DEBUG" == "1" ]; then echo please enter enter read fi diff --git a/main.sh b/main.sh index 0571e00..ed71621 100755 --- a/main.sh +++ b/main.sh @@ -10,7 +10,7 @@ tmp_target="${main}/tmp_target" vars="${target}/tmp/vinstaller/vars" files="./files" -if [ "${DEBUG}" ]; then +if [ "${DEBUG}" == "1" ]; then umount -R ${target}/boot/efi ${target}/boot ${target}/tmp/vinstaller/ ${target}/home ${target} vgchange -an cryptsetup close /dev/mapper/luks* @@ -235,7 +235,7 @@ do_install() { for i in "${ignorepkgs[@]}"; do echo "ignorepkg=${i}" >> "${target}/etc/xbps.d/10-ignore-pkg.conf" done - if [ "${DEBUG}" ]; then + if [ "${DEBUG}" == "1" ]; then xbps-install -S -R https://alpha.de.repo.voidlinux.org/current -r "${target}" "${pkgs[@]}" else xbps-install -Sy -R https://alpha.de.repo.voidlinux.org/current -r "${target}" "${pkgs[@]}"