From baa2776f8499b1621c1932e93df8a1b749131cfe Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 11 May 2017 17:14:42 +0200 Subject: bin/get_*: Always exit with 0. --- bin/get_battery_status | 4 +--- bin/get_cpu_status | 1 + bin/get_load | 1 + bin/get_mem | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/get_battery_status b/bin/get_battery_status index bc4b819..57af321 100755 --- a/bin/get_battery_status +++ b/bin/get_battery_status @@ -23,7 +23,5 @@ if [ -x /usr/bin/acpi ]; then echo "$battery_percentage%" fi fi -else - exit 1 fi - +exit 0 diff --git a/bin/get_cpu_status b/bin/get_cpu_status index 2aece18..18b5c16 100755 --- a/bin/get_cpu_status +++ b/bin/get_cpu_status @@ -8,3 +8,4 @@ proc_output=$(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END { proc_output=${proc_output#" "} echo "$proc_output%" +exit 0 diff --git a/bin/get_load b/bin/get_load index 7991d26..f409630 100755 --- a/bin/get_load +++ b/bin/get_load @@ -6,3 +6,4 @@ uptime_output=$(uptime| cut -d',' -f4,5,6|cut -d':' -f2) uptime_output=${uptime_output#" "} echo "$uptime_output" +exit 0 diff --git a/bin/get_mem b/bin/get_mem index fa2a453..fc49561 100755 --- a/bin/get_mem +++ b/bin/get_mem @@ -7,3 +7,5 @@ mem_output="" mem_output="$(free -m| grep "Mem:"| awk '{printf $3 "/" $2 " ("} {printf ("%1.3f", $3/$2)} {printf ")"}')" echo "$mem_output" +exit 0 + -- cgit v1.2.3-70-g09d2