From 8c2bd11821f3dfd2c235a051155009388e540519 Mon Sep 17 00:00:00 2001 From: faulty Date: Fri, 16 Dec 2022 14:28:48 +0100 Subject: [PATCH] fix: exit on error --- sync.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sync.sh b/sync.sh index 95c9375..2b5f2f0 100755 --- a/sync.sh +++ b/sync.sh @@ -8,6 +8,8 @@ PULL_GIT=${PULL_GIT:-yes} . ./lib/lib.sh . ./sync.conf +set -e # Exit on error + _install_pkgs() { while read -r pkg; do run $SYS_SUDO $PM_COMMAND $PM_INSTALL_ARG $PM_NOCONFIRM_ARG $pkg