summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-09-01 18:17:57 +0530
committersinanmohd <sinan@firemail.cc>2023-09-01 18:17:57 +0530
commit5946a7b5ec36915b5afd17f156d89b11b17c75d9 (patch)
tree9dd1a4c1495aa445a0001be90877058fa5f9b9f1 /.local/bin
parent3d53b30410345bc086a4693860ed882245ef274e (diff)
bin/caffeine: fix, the m suffix was not removed
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/caffeine3
1 files changed, 2 insertions, 1 deletions
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()