Skip to content

Commit 35d0348

Browse files
authored
Update 16_pkg_install.sh
1 parent 4991404 commit 35d0348

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

scripts.d/16_pkg_install.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ _op _chroot apt-mark hold linux-headers-rpi-2712
4343
_op _chroot apt-mark hold linux-image-rpi-2712
4444
_op _chroot apt-mark hold initramfs-tools
4545

46-
#if [[ ${INSTALL_PACKAGES:-} ]] ; then
47-
# echo "Installing ${INSTALL_PACKAGES[*]}"
48-
# _apt install "${INSTALL_PACKAGES[@]}" # || die "Could not install ${INSTALL_PACKAGES[*]}"
49-
#fi
46+
if [[ ${INSTALL_PACKAGES:-} ]] ; then
47+
echo "Installing ${INSTALL_PACKAGES[*]}"
48+
_apt install "${INSTALL_PACKAGES[@]}" # || die "Could not install ${INSTALL_PACKAGES[*]}"
49+
fi
5050

51-
for package in "${INSTALL_PACKAGES[@]}"; do
52-
_apt install -y "$package"
53-
if [[ $? -ne 0 ]]; then
54-
echo "Error installing $package. Continuing..."
55-
fi
56-
done
51+
#for package in "${INSTALL_PACKAGES[@]}"; do
52+
# _apt install -y "$package"
53+
# if [[ $? -ne 0 ]]; then
54+
# echo "Error installing $package. Continuing..."
55+
# fi
56+
#done
5757

5858
_op _chroot apt-mark hold tor #TODO bring back to upstream
5959
_op _chroot apt-mark unhold linux-headers-rpi-v8

0 commit comments

Comments
 (0)