Bug fixing on restore

This commit is contained in:
John
2025-04-27 20:53:26 +12:00
parent acb462d15e
commit 5bc7a05a46
2 changed files with 11 additions and 2 deletions

View File

@ -145,3 +145,11 @@ check_required_env_vars() {
fi
done
}
function _root_remove_tree() {
local to_remove="$1"
parent=$(dirname "$to_remove")
abs_parent=$(realpath "$parent")
child=$(basename "$to_remove")
docker run --rm -v "$abs_parent":/data alpine rm -rf "/data/$child"
}