V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 54s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 54s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -35,7 +35,6 @@ do_in_target() {
|
||||
declare var_chroot_target="$1"; shift
|
||||
declare -a ary_chroot_command=("$@")
|
||||
declare -r var_default_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
declare -i var_chroot_rc=0
|
||||
|
||||
if (( ${#ary_chroot_command[@]} == 0 )); then
|
||||
|
||||
@@ -62,9 +61,7 @@ do_in_target() {
|
||||
|
||||
then
|
||||
|
||||
var_chroot_rc="${?}"
|
||||
do_log "emergency" "file_only" "1080() Command: [chroot ${var_chroot_target} /usr/bin/env -i HOME=/root PATH=${var_default_path} TERM=${TERM} LANG=C.UTF-8 LC_ALL=C.UTF-8 ${ary_chroot_command[*]}] failed."
|
||||
do_log "emergency" "file_only" "1080() Command: [Return code: '${var_chroot_rc}']."
|
||||
return "${ERR_CHRT_COMMAND}"
|
||||
|
||||
else
|
||||
@@ -93,7 +90,6 @@ do_in_target_script() {
|
||||
declare var_chroot_target="$1"; shift
|
||||
declare var_chroot_script="$1"
|
||||
declare -r var_default_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
declare -i var_chroot_rc=0
|
||||
|
||||
if [[ -z "${var_chroot_script}" ]]; then
|
||||
|
||||
@@ -112,9 +108,7 @@ do_in_target_script() {
|
||||
|
||||
then
|
||||
|
||||
var_chroot_rc="${?}"
|
||||
do_log "emergency" "file_only" "1080() Command: [chroot ${var_chroot_target} /usr/bin/env -i HOME=/root PATH=${var_default_path} TERM=${TERM} LANG=C.UTF-8 LC_ALL=C.UTF-8 /bin/bash -c ${var_chroot_script}] failed."
|
||||
do_log "emergency" "file_only" "1080() Command: [Return code: '${var_chroot_rc}']."
|
||||
return "${ERR_CHRT_COMMAND}"
|
||||
|
||||
# TODO: Test with Dialog Wrapper in interactive mode.
|
||||
|
||||
Reference in New Issue
Block a user