Moved packages array into relavent if statement

This commit is contained in:
2025-10-14 11:43:46 -04:00
parent 67763d1b39
commit bee95926b7

View File

@@ -9,7 +9,8 @@ source \
"${BASEDIR}/system.conf"
packages=(\
if [[ "${1}" == '-1' ]]; then
packages=(\
console-setup \
cryptsetup \
curl \
@@ -29,14 +30,12 @@ zfs-initramfs \
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}]}"
done
done
if [[ "${1}" == '-1' ]]; then
mmdebstrap \
--skip=check/empty \
--components=main,restricted,universe,multiverse \