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,7 +9,8 @@ source \
"${BASEDIR}/system.conf" "${BASEDIR}/system.conf"
packages=(\ if [[ "${1}" == '-1' ]]; then
packages=(\
console-setup \ console-setup \
cryptsetup \ cryptsetup \
curl \ curl \
@@ -33,14 +34,12 @@ zfs-initramfs \
zstd\ 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 \ mmdebstrap \
--skip=check/empty \ --skip=check/empty \
--components=main,non-free-firmware,contrib \ --components=main,non-free-firmware,contrib \