summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpkgsync-ng-nt4
1 files 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