summaryrefslogtreecommitdiff
path: root/.local/bin/caffeine
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/caffeine')
-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"