From 1656dceca3542484e1888081939005ad2b15e42f Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 4 Jul 2023 14:19:43 +0530 Subject: caffeine: fail silently when dmenu input is empty --- .local/bin/caffeine | 2 ++ 1 file changed, 2 insertions(+) (limited to '.local/bin') 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" -- cgit v1.2.3