From 8d58bcd1c1863570916c1b7eb49585c9bff84476 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Wed, 30 Oct 2024 16:27:57 -0700 Subject: [PATCH] release: properly change working dir if tmp location already exists Currently, the script won't change directories into the previously cloned repository if the temporary location exists. This may be an issue when testing first with a dry run and later with the actual release. Signed-off-by: Ivan Valdes --- scripts/release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/release.sh b/scripts/release.sh index d2aeb25fc96..4c2c474010e 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -95,6 +95,8 @@ main() { run git pull origin git_assert_branch_in_sync || exit 2 + elif [ "${IN_PLACE}" == 0 ]; then + cd "${reldir}/etcd" || exit 2 fi # mark local directory as root for test_lib scripts executions