From 490de09100ab84d0232b838790c2348264302870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 5 Oct 2018 14:36:37 +0200 Subject: sys-apps/personal-utils: emergefix ask to continue --- sys-apps/personal-utils/files/emergefix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys-apps/personal-utils/files/emergefix') diff --git a/sys-apps/personal-utils/files/emergefix b/sys-apps/personal-utils/files/emergefix index 1147b57..59daee5 100755 --- a/sys-apps/personal-utils/files/emergefix +++ b/sys-apps/personal-utils/files/emergefix @@ -3,7 +3,15 @@ set -e echo -e '\e[1;34m========== Update packages ==========\e[0m' emerge -auDN --with-bdeps=y --keep-going=y @world "$@" +[ $? -eq 0 ] || { + echo -ne "\e[1;31mContinue?\e[0m " + read +} echo -e '\e[1;34m========== Rebuil packages ==========\e[0m' revdep-rebuild -- "$@" +[ $? -eq 0 ] || { + echo -ne "\e[1;31mContinue?\e[0m " + read +} echo -e '\e[1;34m========== Clean packages ==========\e[0m' emerge --depclean -a "$@" -- cgit v1.2.3