nuget-to-nix: fix error handling
This commit is contained in:
parent
5706443baf
commit
92a255d13b
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue