mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nuget-to-nix: fix error handling
This commit is contained in:
parent
5706443baf
commit
92a255d13b
@ -52,6 +52,7 @@ for package in *; do
|
||||
fi
|
||||
|
||||
used_source="$(jq -r '.source' "$version"/.nupkg.metadata)"
|
||||
found=false
|
||||
|
||||
if [[ -d "$used_source" ]]; then
|
||||
continue
|
||||
@ -80,7 +81,7 @@ for package in *; do
|
||||
fi
|
||||
done
|
||||
|
||||
if ! ${found-false}; then
|
||||
if [[ $found = false ]]; then
|
||||
echo "couldn't find $package $version" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user