Skip to content

Commit

Permalink
fix unbound variable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sylirre committed Dec 19, 2023
1 parent 172a984 commit cc837e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion distro-build/debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ dist_version="bookworm"

bootstrap_distribution() {
sudo rm -f "${ROOTFS_DIR}"/debian-*.tar.xz
sudo rm -rf "${WORKDIR}/debian-$(translate_arch "$arch")"

for arch in arm64 armhf i386 amd64; do
sudo rm -rf "${WORKDIR}/debian-$(translate_arch "$arch")"
sudo mmdebstrap \
--architectures=${arch} \
--variant=minbase \
Expand Down
9 changes: 5 additions & 4 deletions distro-build/pardus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ dist_version="yirmibir"

bootstrap_distribution() {
sudo rm -f "${ROOTFS_DIR}"/pardus-*.tar.xz
sudo rm -rf "${WORKDIR}/pardus-$(translate_arch "$arch")"

wget https://depo.pardus.org.tr/pardus/pool/main/p/pardus-archive-keyring/pardus-archive-keyring_2021.1_all.deb
sudo dpkg -i pardus-archive-keyring_2021.1_all.deb
rm pardus-archive-keyring_2021.1_all.deb

for arch in arm64 i386 amd64; do
wget https://depo.pardus.org.tr/pardus/pool/main/p/pardus-archive-keyring/pardus-archive-keyring_2021.1_all.deb
sudo dpkg -i pardus-archive-keyring_2021.1_all.deb
rm pardus-archive-keyring_2021.1_all.deb
sudo rm -rf "${WORKDIR}/pardus-$(translate_arch "$arch")"
sudo mmdebstrap \
--architectures=${arch} \
--variant=minbase \
Expand Down
2 changes: 1 addition & 1 deletion distro-build/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ dist_version="mantic"

bootstrap_distribution() {
sudo rm -f "${ROOTFS_DIR}"/ubuntu-*.tar.xz
sudo rm -rf "${WORKDIR}/ubuntu-$(translate_arch "$arch")"

for arch in arm64 armhf amd64; do
sudo rm -rf "${WORKDIR}/ubuntu-$(translate_arch "$arch")"
sudo mmdebstrap \
--architectures=${arch} \
--variant=apt \
Expand Down

0 comments on commit cc837e7

Please sign in to comment.