From: Frank Brehm Date: Fri, 26 Jan 2018 09:58:20 +0000 (+0100) Subject: committing changes in /etc after apt run X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=792bcaa73e81eda32fa6e58f66e0f103f3cecf6a;p=config%2Fvera%2Fetc.git committing changes in /etc after apt run Package changes: -apt 1.6~alpha6 amd64 +apt 1.6~alpha7 amd64 -apt-utils 1.6~alpha6 amd64 +apt-utils 1.6~alpha7 amd64 -kmod 24-1 amd64 -krb5-locales 1.15.2-2 all +kmod 25-1 amd64 +krb5-locales 1.16-2 all -libapt-inst2.0 1.6~alpha6 amd64 -libapt-pkg5.0 1.6~alpha6 amd64 +libapt-inst2.0 1.6~alpha7 amd64 +libapt-pkg5.0 1.6~alpha7 amd64 -libgssapi-krb5-2 1.15.2-2 amd64 +libgssapi-krb5-2 1.16-2 amd64 -libk5crypto3 1.15.2-2 amd64 +libk5crypto3 1.16-2 amd64 -libkmod2 24-1 amd64 -libkrb5-3 1.15.2-2 amd64 -libkrb5support0 1.15.2-2 amd64 +libkmod2 25-1 amd64 +libkrb5-3 1.16-2 amd64 +libkrb5support0 1.16-2 amd64 -manpages-de 2.3-1 all +manpages-de 2.3-2 all -tzdata 2017c-1 all +tzdata 2018b-1 all -whois 5.2.20 amd64 +whois 5.3.0 amd64 --- diff --git a/cron.daily/apt-compat b/cron.daily/apt-compat index 095a44c..b0b5537 100755 --- a/cron.daily/apt-compat +++ b/cron.daily/apt-compat @@ -19,9 +19,9 @@ check_power() # 255 (false) Power status could not be determined # Desktop systems always return 255 it seems if which on_ac_power >/dev/null 2>&1; then - on_ac_power - POWER=$? - if [ $POWER -eq 1 ]; then + if on_ac_power; then + : + elif [ $? -eq 1 ]; then return 1 fi fi