From 5c589f53e0fd973ab0d35b7b36de215292e88ee0 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 7 Aug 2022 11:52:05 +0200 Subject: [PATCH] os-upgrade.sh: replace 'dist-upgrade' with 'full-upgrade'. --- os-upgrade.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/os-upgrade.sh b/os-upgrade.sh index 298073e..68063c1 100755 --- a/os-upgrade.sh +++ b/os-upgrade.sh @@ -236,7 +236,7 @@ fi # - get list of upgradable packages # -packages_updated="$(apt-get -V -s dist-upgrade | grep -E "^ .*=>.*" | awk '{print$1}')" +packages_updated="$(apt-get -V -s full-upgrade | grep -E "^ .*=>.*" | awk '{print$1}')" #blank_line #echononl "Upgrade Packages" @@ -274,18 +274,18 @@ echononl "Upgrade Packages" if ! $terminal && [[ -n "$packages_updated" ]] ; then echo "" echo " Upgrade Packages.." - echo " apt-get dist-upgrade" + echo " apt-get full-upgrade" fi -echo_print_command "apt-get dist-upgrade" +echo_print_command "apt-get full-upgrade" if $terminal; then echo -e "\033[2A" fi if [[ -n "$packages_updated" ]]; then - apt-get dist-upgrade -y > $log_file 2>&1 + apt-get full-upgrade -y > $log_file 2>&1 if [[ $? -gt 0 ]]; then echo_failed if ! $terminal ; then - error "Command \"apt-get dist-upgrade\" failed!" + error "Command \"apt-get full-upgrade\" failed!" fi fatal "$(cat $log_file)" else