From 52e5365708ded0368e6c034c581c32e4ffe42c8c Mon Sep 17 00:00:00 2001 From: Pedro Tashima Date: Mon, 11 Nov 2024 13:13:25 -0300 Subject: [PATCH] add usage and example --- bin/rancher-rc-deps | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/rancher-rc-deps b/bin/rancher-rc-deps index 50be66c9..a5752987 100755 --- a/bin/rancher-rc-deps +++ b/bin/rancher-rc-deps @@ -8,8 +8,9 @@ rancher_url="https://github.com/rancher/rancher.git" rancher_dir=$(mktemp -d) if [[ -z "$ref" ]]; then - echoerr "git-ref not defined, check usage:" - show_usage + >&2 echo "error: git-ref not defined, check usage:" + >&2 echo "usage: $0 [git-ref]" + >&2 echo "example: $0 release/v2.10" exit 1 fi