V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m41s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-07-09 10:51:49 +02:00
parent f383309d80
commit 0b95ad9700
2 changed files with 23 additions and 15 deletions

View File

@@ -25,13 +25,15 @@ guard_sourcing
# 0: Successfully executed commands.
#######################################
do_in_target() {
declare var_chroot_target="$1"; shift
declare var_chroot_target="$1"
shift
declare -a ary_chroot_command=("$@")
if chroot "${var_chroot_target}" /usr/bin/env -i \
HOME=/root \
PATH=/usr/sbin:/usr/bin:/sbin:/bin \
TERM="${TERM}" \
"${ary_chroot_command[@]}"; then
"${ary_chroot_command[@]}"
then
do_log "info" "true" "Success: chroot ${var_chroot_target}: ${ary_chroot_command[*]}"
return 0
else