fix: exit on error
This commit is contained in:
parent
8749c9dc32
commit
8c2bd11821
1 changed files with 2 additions and 0 deletions
2
sync.sh
2
sync.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue