From cd6b4dfc614302f7a32d5fd112ab1348a1a79068 Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:03 +0200 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