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"