diff options
| author | herkulessi <git@herkulessi.de> | 2026-04-30 17:19:38 +0200 |
|---|---|---|
| committer | herkulessi <git@herkulessi.de> | 2026-04-30 17:19:38 +0200 |
| commit | eb82bb4ead054cee63932cae92e168253fd7ef97 (patch) | |
| tree | 6112d68b5c02c4ffec07f7c37f2f12b83b9110ef | |
| parent | b65dc10ca8cbb7cf46c67c2bdfb8a5f27a3aaf76 (diff) | |
| -rwxr-xr-x | pkgsync-ng-nt | 4 |
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 |
