This commit is contained in:
teldra 2022-02-08 21:38:13 +01:00
parent e8d03b8c04
commit 18ebb32efa
2 changed files with 9 additions and 7 deletions

View File

@ -7,7 +7,10 @@ err() {
header() {
if [ "$DEBUG" == "1" ]; then
echo please enter enter
read
read a
if [ "$a" == "2" ]; then
set -x
fi
fi
clear
echo "#### $1"

11
main.sh
View File

@ -10,12 +10,11 @@ tmp_target="${main}/tmp_target"
vars="${target}/tmp/vinstaller/vars"
files="./files"
if [ "${DEBUG}" == "1" ]; then
umount -R ${target}/boot/efi ${target}/boot ${target}/tmp/vinstaller/ ${target}/home ${target}
vgchange -an
cryptsetup close /dev/mapper/luks*
rm -rf $main
fi
umount -R ${target}/boot/efi ${target}/boot ${target}/tmp/vinstaller/ ${target}/home ${target}
vgchange -an
cryptsetup close /dev/mapper/luks*
rm -rf $main
if [ "${DEBUG}" == "2" ]; then
set -x
fi