Skip to content

Commit 438390e

Browse files
back to old run_cmd()
1 parent 271a543 commit 438390e

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

plugins/envsetup

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -438,14 +438,9 @@ do_tar_bzip() {
438438
}
439439

440440
run_cmd() {
441-
do_mount "$chroot_dir"
442-
if [ -d "$chroot_dir" ]; then
443-
cat <<- EOF | $SUDO chroot "$chroot_dir"
444-
$command
445-
EOF
446-
else
447-
die "chroot directory doesn't exist: $chroot_dir"
448-
fi
441+
local chroot_dir="$1"
442+
local command="$2"
443+
do_chroot_ae "$chroot_dir" "$command"
449444
}
450445

451446
install_pkg()

0 commit comments

Comments
 (0)