fix: exit on error

This commit is contained in:
Didier Slof 2022-12-16 14:28:48 +01:00
parent 8749c9dc32
commit 8c2bd11821
Signed by: didier
GPG key ID: 01E71F18AA4398E5

View file

@ -8,6 +8,8 @@ PULL_GIT=${PULL_GIT:-yes}
. ./lib/lib.sh . ./lib/lib.sh
. ./sync.conf . ./sync.conf
set -e # Exit on error
_install_pkgs() { _install_pkgs() {
while read -r pkg; do while read -r pkg; do
run $SYS_SUDO $PM_COMMAND $PM_INSTALL_ARG $PM_NOCONFIRM_ARG $pkg run $SYS_SUDO $PM_COMMAND $PM_INSTALL_ARG $PM_NOCONFIRM_ARG $pkg