Skip to content

Commit

Permalink
zon2json-lock: use the correct variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Jan 15, 2024
1 parent 52db410 commit 7e462e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/zon2json-lock.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ writeShellApplication {
done < <(zon2json "$1" | jq -r '.dependencies | to_entries | .[] | select(.value.url != null) | .key, .value.url, .value.hash')
}
if ! jq -e '.dependencies[] | select(.url != null) | length > 0' <(zon2json "$1") >/dev/null; then
if ! jq -e '.dependencies[] | select(.url != null) | length > 0' <(zon2json "$path") >/dev/null; then
printf -- '%s has no dependencies\n' "$path" 1>&2
exit 0
fi
Expand Down

0 comments on commit 7e462e2

Please sign in to comment.