Skip to content

Commit

Permalink
init: Fix inability to enter Gentoo container after changing EMERGE_D…
Browse files Browse the repository at this point in the history
…EFAULT_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
  • Loading branch information
btwotwo authored Feb 1, 2024
1 parent ad542eb commit 202f13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 202f13f

Please sign in to comment.