From 202f13f64f2e422c920d11c08788a0c1d6d54611 Mon Sep 17 00:00:00 2001 From: btwotwo <10519967+btwotwo@users.noreply.github.com> Date: Thu, 1 Feb 2024 22:19:58 +0100 Subject: [PATCH] init: Fix inability to enter Gentoo container after changing EMERGE_DEFAULT_OPTS (#1079) If one adds '--ask' to EMERGE_DEFAULT_OPTS then they can not enter the Gentoo container anymore, because --ask doesn't work on the non-interactive tty --- distrobox-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distrobox-init b/distrobox-init index 6c7e3f11db..24d39c639c 100755 --- a/distrobox-init +++ b/distrobox-init @@ -735,7 +735,7 @@ if [ "${upgrade}" -ne 0 ] || " install_pkg="" for dep in ${deps}; do - if [ "$(emerge --search "${dep}" | grep "Applications found" | grep -Eo "[0-9]")" -gt 0 ]; then + if [ "$(emerge --ask=n --search "${dep}" | grep "Applications found" | grep -Eo "[0-9]")" -gt 0 ]; then # shellcheck disable=SC2086 install_pkg="${install_pkg} ${dep}" fi