From 5946a7b5ec36915b5afd17f156d89b11b17c75d9 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 1 Sep 2023 18:17:57 +0530 Subject: bin/caffeine: fix, the m suffix was not removed --- .local/bin/caffeine | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.local/bin/caffeine') diff --git a/.local/bin/caffeine b/.local/bin/caffeine index 014ee7d..ed4eb81 100755 --- a/.local/bin/caffeine +++ b/.local/bin/caffeine @@ -55,7 +55,8 @@ caf_time() { dep_check "$menu" - printf "1m\n3m\n5m\n10m\n15m\n30m" | "$menu" -p " sleep after " + time="$(printf "1m\n3m\n5m\n10m\n15m\n30m" | "$menu" -p " sleep after ")" + echo "${time%m}" } drink() -- cgit v1.2.3