summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-07-04 14:19:43 +0530
committersinanmohd <sinan@firemail.cc>2023-07-04 14:19:43 +0530
commit1656dceca3542484e1888081939005ad2b15e42f (patch)
tree4541194e2da986aac21aa1ca94aa8ab8afed0af8 /.local
parentb016e414756640ee03915a7f20ed5ba7c3fb9c71 (diff)
caffeine: fail silently when dmenu input is empty
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/caffeine2
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"