From eb82bb4ead054cee63932cae92e168253fd7ef97 Mon Sep 17 00:00:00 2001 From: herkulessi Date: Thu, 30 Apr 2026 17:19:38 +0200 Subject: Irgnore Config Parsing errors unless ingregious --- pkgsync-ng-nt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgsync-ng-nt b/pkgsync-ng-nt index da1f32a..6097432 100755 --- a/pkgsync-ng-nt +++ b/pkgsync-ng-nt @@ -47,12 +47,12 @@ if [ "$OLD_VERSION" -ge "$NEW_VERSION" ]; then exit 0 fi -DO_INSTALL="$(< /etc/packages.yaml yq -r '.install | to_entries | map(.value) | add | map(tostring) | join(", ")')" +DO_INSTALL="$(< /etc/packages.yaml yq -r '.install | to_entries | map(.value) | add | map(tostring) | join(", ")' 2>/dev/null || true)" if [ -z "$DO_INSTALL" ]; then printf "Package List was empty. Refusing operation for fear of malformed configuration." exit 1 fi -DONT_INSTALL="$(< /etc/packages.yaml yq -r '.remove | to_entries | map(.value) | add | map(tostring) | join(", ")')" +DONT_INSTALL="$(< /etc/packages.yaml yq -r '.remove | to_entries | map(.value) | add | map(tostring) | join(", ")' 2>/dev/null || true)" cat > "$PACKAGE_NAME" << EOF Section: misc -- cgit v1.2.3