1. Andriy Kornatskyy
  2. mindref-sbin

Source

mindref-sbin / apt-upgrade

Diff from to

File apt-upgrade

 fi
     
 if [ -z $mailto ]; then
-    apt-get -yqq dist-upgrade
+    apt-get -yqq dist-upgrade 2>&1
 else
-    upgrades=`apt-get -yq dist-upgrade | grep ^Setting \
-        | sed -e 's/Setting up //g' -e 's/ \.\.\.\r//g'`
+    upgrades=`apt-get -yq dist-upgrade 2>&1 | grep ^Setting \
+        | sed -e 's/Setting up //g' -e 's/ \.\.\.//g' -e 's/\r//g'` 
     echo "$upgrades" | mail -s \
         "Upgraded $(hostname -s) on $(date +%Y-%m-%d)" \
         $mailto