From 8a78dd7f96532a986187e9c3c44d544fc21dff02 Mon Sep 17 00:00:00 2001 From: "Jean (east-high-Nerd)" Date: Tue, 14 Oct 2025 11:45:10 -0400 Subject: [PATCH] Moved packages array into relavent if statement --- base-debian.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/base-debian.sh b/base-debian.sh index def6e0c..d5ffbc9 100755 --- a/base-debian.sh +++ b/base-debian.sh @@ -9,7 +9,8 @@ source \ "${BASEDIR}/system.conf" -packages=(\ +if [[ "${1}" == '-1' ]]; then + packages=(\ console-setup \ cryptsetup \ curl \ @@ -33,14 +34,12 @@ zfs-initramfs \ zstd\ ) + include="--include=${packages[0]}" -include="--include=${packages[0]}" + for ((i=1;i<${#packages[@]};i++)); do + include+=" --include=${packages[${i}]}" + done -for ((i=1;i<${#packages[@]};i++)); do - include+=" --include=${packages[${i}]}" -done - -if [[ "${1}" == '-1' ]]; then mmdebstrap \ --skip=check/empty \ --components=main,non-free-firmware,contrib \