From 5e45d00106057d650b73f8a97402d8b4f25a065d Mon Sep 17 00:00:00 2001 From: Rajesh Rajendran Date: Tue, 25 Apr 2023 09:06:55 +0200 Subject: [PATCH] fix(cli): Proper git tag propegation (#1202) and logging of clone Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay-cli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay-cli b/scripts/helmcharts/openreplay-cli index 34e2641cc..82caf9dfa 100755 --- a/scripts/helmcharts/openreplay-cli +++ b/scripts/helmcharts/openreplay-cli @@ -206,6 +206,7 @@ function clone_repo() { err_cd "$tmp_dir" log info "Working directory $tmp_dir" git_options="-b ${OR_VERSION:-main}" + log info "git clone ${OR_REPO} --depth 1 $git_options" eval git clone "${OR_REPO}" --depth 1 $git_options return } @@ -289,7 +290,7 @@ function upgrade() { } # Unless its upgrade release, always checkout same tag. - [[ $RELEASE_UPGRADE -eq 1 ]] || OR_VERSION=$or_version + [[ $RELEASE_UPGRADE -eq 1 ]] || OR_VERSION=${OR_VERSION:-$or_version} time_now=$(date +%m-%d-%Y-%I%M%S) # Creating backup dir of current installation