diff --git a/create-report.sh b/create-report.sh index 0b01a50..05f5ae5 100755 --- a/create-report.sh +++ b/create-report.sh @@ -5,14 +5,14 @@ set -eu echo 'Retrieving Flake information' >&2 flake_info=$(nix flake show --json 2>/dev/null) packages=$( - jq --raw-output '.packages."x86_64-linux" | keys[]' <<-EOF + jq --raw-output '.packages."x86_64-linux" | select(. != null) | keys[]' <<-EOF $flake_info EOF ) echo "Packages:" >&2 echo "$packages" >&2 configurations=$( - jq --raw-output '.nixosConfigurations | keys[]' <<-EOF + jq --raw-output '.nixosConfigurations | select(. != null) | keys[]' <<-EOF $flake_info EOF ) @@ -67,4 +67,4 @@ markdown() { EOF } -markdown > size-report.md +markdown >size-report.md