diff options
author | David Runge <dave@sleepmap.de> | 2017-05-11 17:14:42 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2017-05-11 17:14:42 +0200 |
commit | baa2776f8499b1621c1932e93df8a1b749131cfe (patch) | |
tree | e57264d16db3e3ee6023f08588f8ed2a598786ac | |
parent | e0bc51315d23c96d4a7140cca19be6117a42e5e3 (diff) | |
download | dotfiles-baa2776f8499b1621c1932e93df8a1b749131cfe.tar.gz dotfiles-baa2776f8499b1621c1932e93df8a1b749131cfe.tar.bz2 dotfiles-baa2776f8499b1621c1932e93df8a1b749131cfe.tar.xz dotfiles-baa2776f8499b1621c1932e93df8a1b749131cfe.zip |
bin/get_*: Always exit with 0.
-rwxr-xr-x | bin/get_battery_status | 4 | ||||
-rwxr-xr-x | bin/get_cpu_status | 1 | ||||
-rwxr-xr-x | bin/get_load | 1 | ||||
-rwxr-xr-x | 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 + |