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