From a54b0a9281403248e46a258d6b05ddb687c4b4dd Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 1 Mar 2021 18:56:07 +0100 Subject: [PATCH] os-upgrade.sh: add command 'dpkg --configure -a'. --- os-upgrade.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/os-upgrade.sh b/os-upgrade.sh index 3602070..0e4a053 100755 --- a/os-upgrade.sh +++ b/os-upgrade.sh @@ -342,6 +342,26 @@ if $terminal ; then echo -e "\033[2B" fi +blank_line +echononl "Configure not yet configured packages" +echo_print_command "dpkg --configure -a" +dpkg --configure -a > $log_file 2>&1 +if $terminal; then + echo -e "\033[2A" +fi +if [[ $? -gt 0 ]]; then + echo_failed + if ! $terminal ; then + error "Command \"dpkg --configure -a\" failed!" + fi + fatal "$(cat $log_file)" +else + echo_done +fi +if $terminal ; then + echo -e "\033[2B" +fi + blank_line echononl "Clear out the local repository of retrieved package files" echo_print_command "apt-get clean"