aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2021-09-20 04:03:58 +0530
committerAyush Agarwal <ayush@fastmail.in>2021-09-20 04:03:58 +0530
commitba858c4ede09870e96112a3caa08b5b462bf5f00 (patch)
treefda8e6cf1128142251070ba24e024dfab3b92c6d
parent89e0637e06b32e831b1bd21649ef1ff7e9376660 (diff)
don't use notifications for errors
-rwxr-xr-xtessen4
1 files 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