From 2bd51434bbc427a1d8463e5682c89bac4b8fda51 Mon Sep 17 00:00:00 2001 From: Felix Abecassis Date: Fri, 25 Oct 2024 11:24:19 -0700 Subject: [PATCH] Do not recursively remove the target of bundle/export --force Fixes: #215 Signed-off-by: Felix Abecassis --- src/runtime.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime.sh b/src/runtime.sh index b8d4136..446123a 100644 --- a/src/runtime.sh +++ b/src/runtime.sh @@ -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 @@ -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