Skip to content

Commit

Permalink
Remove the temp checkout dir if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Aug 12, 2023
1 parent 1674df5 commit 52ce787
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1828,6 +1828,10 @@ checkout_external() {
_external_checkout_type=$6

_cqe_checkout_dir="$pkgdir/$_external_dir/.checkout"
if [[ -d $_cqe_checkout_dir ]]; then
# cleanup in case there was an aborted attempt to checkout
rm -rf "$_cqe_checkout_dir"
fi
mkdir -p "$_cqe_checkout_dir"
if [ "$_external_type" = "git" ]; then
if [ -z "$_external_tag" ]; then
Expand Down

0 comments on commit 52ce787

Please sign in to comment.