From 7f831c33094f0c8aed83c94b5792c2e1922d8293 Mon Sep 17 00:00:00 2001 From: Pedro Tashima Date: Mon, 11 Nov 2024 13:02:33 -0300 Subject: [PATCH] add rc print --- bin/rancher-rc-deps | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/rancher-rc-deps b/bin/rancher-rc-deps index 84d3703e..50be66c9 100755 --- a/bin/rancher-rc-deps +++ b/bin/rancher-rc-deps @@ -5,12 +5,7 @@ set -e ref=$1 rancher_url="https://github.com/rancher/rancher.git" -# dependencies="" - rancher_dir=$(mktemp -d) -function cleanup { rm -rf "$rancher_dir"; } - -trap cleanup EXIT if [[ -z "$ref" ]]; then echoerr "git-ref not defined, check usage:" @@ -27,7 +22,12 @@ curl -sLf https://releases.rancher.com/kontainer-driver-metadata/"${kdm_branch}" ( cd "$rancher_dir" TAG=dev "$rancher_dir"/scripts/create-components-images-files.sh - cat "$rancher_dir/bin/rancher-components.txt" ) +dev_rc_components=$(grep "dev\|rc" "$rancher_dir/bin/rancher-components.txt") +if [[ -n $dev_rc_components ]];then + echo "found dev or rc components" + echo "$dev_rc_components" + exit 1 +fi