diff options
author | sinanmohd <sinan@firemail.cc> | 2023-07-04 14:19:43 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-07-04 14:19:43 +0530 |
commit | 1656dceca3542484e1888081939005ad2b15e42f (patch) | |
tree | 4541194e2da986aac21aa1ca94aa8ab8afed0af8 | |
parent | b016e414756640ee03915a7f20ed5ba7c3fb9c71 (diff) |
caffeine: fail silently when dmenu input is empty
-rwxr-xr-x | .local/bin/caffeine | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.local/bin/caffeine b/.local/bin/caffeine index 10b26e0..bce6abd 100755 --- a/.local/bin/caffeine +++ b/.local/bin/caffeine @@ -112,6 +112,8 @@ done [ -z "$timeout" ] && timeout="$(caf_time)" +[ -z "$timeout" ] && + exit 1 [ "$((timeout))" -le 0 ] && die "invalid input time" |