Moved packages array into relavent if statement

This commit is contained in:
2025-10-14 11:45:10 -04:00
parent bee95926b7
commit 8a78dd7f96

View File

@@ -9,6 +9,7 @@ source \
"${BASEDIR}/system.conf" "${BASEDIR}/system.conf"
if [[ "${1}" == '-1' ]]; then
packages=(\ packages=(\
console-setup \ console-setup \
cryptsetup \ cryptsetup \
@@ -33,14 +34,12 @@ zfs-initramfs \
zstd\ zstd\
) )
include="--include=${packages[0]}" include="--include=${packages[0]}"
for ((i=1;i<${#packages[@]};i++)); do for ((i=1;i<${#packages[@]};i++)); do
include+=" --include=${packages[${i}]}" include+=" --include=${packages[${i}]}"
done done
if [[ "${1}" == '-1' ]]; then
mmdebstrap \ mmdebstrap \
--skip=check/empty \ --skip=check/empty \
--components=main,non-free-firmware,contrib \ --components=main,non-free-firmware,contrib \