Skip to content

Commit

Permalink
fix(packages/scripts): fail when no builder found
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Dec 19, 2023
1 parent 9f6c209 commit 4ddfd83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/scripts/get-package-builder-with-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ function main() {

# fail when array length greater than 1.
if yq -e 'length > 1' release-package-routes.yaml >/dev/null 2>&1; then
echo "Error: wrong package config that make me matched more than 1 routes!"
echo "Error: wrong package config that make me matched more than 1 routes!" >&2
exit 1
fi

if yq -e 'length == 0' release-package-routes.yaml >/dev/null 2>&1; then
echo "No package routes matched for the target($target_info)."
exit 0
echo "No package routes matched for the target($target_info)." >&2
exit 1
fi

# get the builder image.
Expand Down

0 comments on commit 4ddfd83

Please sign in to comment.