fix: exit on error
This commit is contained in:
parent
1efbdc318d
commit
cd6b4dfc61
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