Skip to content

Commit

Permalink
release: properly change working dir if tmp location already exists
Browse files Browse the repository at this point in the history
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 <ivan@vald.es>
  • Loading branch information
ivanvc committed Oct 30, 2024
1 parent 6883308 commit 8d58bcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d58bcd

Please sign in to comment.