diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/apt.apt-compat.cron.daily | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/apt.apt-compat.cron.daily b/debian/apt.apt-compat.cron.daily index 095a44c4a..b0b553768 100644 --- a/debian/apt.apt-compat.cron.daily +++ b/debian/apt.apt-compat.cron.daily @@ -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 |