diff options
author | sinanmohd <sinan@firemail.cc> | 2023-09-01 18:17:57 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-09-01 18:17:57 +0530 |
commit | 5946a7b5ec36915b5afd17f156d89b11b17c75d9 (patch) | |
tree | 9dd1a4c1495aa445a0001be90877058fa5f9b9f1 | |
parent | 3d53b30410345bc086a4693860ed882245ef274e (diff) |
bin/caffeine: fix, the m suffix was not removed
-rwxr-xr-x | .local/bin/caffeine | 3 |
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() |