Skip to content

Commit

Permalink
add rc print
Browse files Browse the repository at this point in the history
  • Loading branch information
tashima42 committed Nov 11, 2024
1 parent dd43416 commit 7f831c3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/rancher-rc-deps
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand All @@ -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

0 comments on commit 7f831c3

Please sign in to comment.