aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <50464604+JozanLeClerc@users.noreply.github.com>2019-11-14 10:46:19 +0100
committerGitHub <noreply@github.com>2019-11-14 10:46:19 +0100
commit4ce4c311780d855cd7cd1c2ca511577e574c5a93 (patch)
treec77f2a1093e66c563d62c9bf1649e646a54f473a
parentIn progress (diff)
downloadlowbat-gnu-4ce4c311780d855cd7cd1c2ca511577e574c5a93.tar.gz
lowbat-gnu-4ce4c311780d855cd7cd1c2ca511577e574c5a93.tar.bz2
lowbat-gnu-4ce4c311780d855cd7cd1c2ca511577e574c5a93.tar.xz
lowbat-gnu-4ce4c311780d855cd7cd1c2ca511577e574c5a93.tar.zst
lowbat-gnu-4ce4c311780d855cd7cd1c2ca511577e574c5a93.zip
Correct argc, should work by now
-rwxr-xr-xbin/lowbat10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/lowbat b/bin/lowbat
index 528588b..48a6a38 100755
--- a/bin/lowbat
+++ b/bin/lowbat
@@ -1,10 +1,10 @@
#!/bin/sh
-##if [ $@ -lt 2 ]; then
-## message="beep beep - low battery"
-##else
-## message=$2
-##fi
+if [ $# -lt 2 ]; then
+ message="beep beep - low battery"
+else
+ message=$2
+fi
notify() {
notify-send "Low battery" "Please plug in computer" -u critical -t 15000