aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-05-11 17:14:42 +0200
committerDavid Runge <dave@sleepmap.de>2017-05-11 17:14:42 +0200
commitbaa2776f8499b1621c1932e93df8a1b749131cfe (patch)
treee57264d16db3e3ee6023f08588f8ed2a598786ac /bin
parente0bc51315d23c96d4a7140cca19be6117a42e5e3 (diff)
downloaddotfiles-baa2776f8499b1621c1932e93df8a1b749131cfe.tar.gz
dotfiles-baa2776f8499b1621c1932e93df8a1b749131cfe.tar.bz2
dotfiles-baa2776f8499b1621c1932e93df8a1b749131cfe.tar.xz
dotfiles-baa2776f8499b1621c1932e93df8a1b749131cfe.zip
bin/get_*: Always exit with 0.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get_battery_status4
-rwxr-xr-xbin/get_cpu_status1
-rwxr-xr-xbin/get_load1
-rwxr-xr-xbin/get_mem2
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
+