Skip to content

Commit

Permalink
Do not recursively remove the target of bundle/export --force
Browse files Browse the repository at this point in the history
Fixes: #215

Signed-off-by: Felix Abecassis <[email protected]>
  • Loading branch information
flx42 committed Oct 25, 2024
1 parent b73986a commit 2bd5143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ runtime::export() {
if [ -z "${ENROOT_FORCE_OVERRIDE-}" ]; then
common::err "File already exists: ${filename}"
else
common::rmall "${filename}"
rm -f "${filename}"
fi
fi

Expand Down Expand Up @@ -596,7 +596,7 @@ runtime::bundle() (
if [ -z "${ENROOT_FORCE_OVERRIDE-}" ]; then
common::err "File already exists: ${filename}"
else
common::rmall "${filename}"
rm -f "${filename}"
fi
fi

Expand Down

0 comments on commit 2bd5143

Please sign in to comment.