Skip to content

Commit 369bb22

Browse files
committed
fix error when no override packages are present
1 parent fe4fb36 commit 369bb22

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-image.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ pacman --noconfirm -U --overwrite '*' /aur_pkgs/*
122122
rm -rf /var/cache/pacman/pkg
123123
124124
# install override packages
125-
pacman --noconfirm -U --overwrite '*' /override_pkgs/*
126-
rm -rf /var/cache/pacman/pkg
125+
if [ -n "${PACKAGE_OVERRIDES}" ]; then
126+
pacman --noconfirm -U --overwrite '*' /override_pkgs/*
127+
rm -rf /var/cache/pacman/pkg
128+
fi
127129
128130
# Install the new iptables
129131
# See https://gitlab.archlinux.org/archlinux/packaging/packages/iptables/-/issues/1

0 commit comments

Comments
 (0)