From ba858c4ede09870e96112a3caa08b5b462bf5f00 Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Mon, 20 Sep 2021 04:03:58 +0530 Subject: don't use notifications for errors --- tessen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tessen b/tessen index e6855c6..c1b98ce 100755 --- a/tessen +++ b/tessen @@ -214,7 +214,7 @@ validate_clip_time() { if [[ "$CLIP_TIME" =~ $clip_regex ]]; then return 0 else - notify-send "invalid clipboard time provided" + printf '%s\n' "invalid clipboard time provided" >&2 exit 1 fi } @@ -238,7 +238,7 @@ main() { # exit if the password store directory doesn't exist if ! [[ -d "$PREFIX" ]]; then - notify-send "password store not found" + printf '%s\n' "password store not found" >&2 exit 1 fi -- cgit v1.2.3