diff options
author | Joe <50464604+JozanLeClerc@users.noreply.github.com> | 2019-11-14 10:46:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 10:46:19 +0100 |
commit | 4ce4c311780d855cd7cd1c2ca511577e574c5a93 (patch) | |
tree | c77f2a1093e66c563d62c9bf1649e646a54f473a | |
parent | In progress (diff) | |
download | lowbat-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-x | bin/lowbat | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |