summaryrefslogtreecommitdiff
path: root/tessen
diff options
context:
space:
mode:
authorAyush Agarwal <ayushnix@fastmail.com>2023-03-01 21:02:16 +0530
committerAyush Agarwal <ayushnix@fastmail.com>2023-03-19 01:52:26 +0530
commit02603561179e153aa1224825e23dab61849a198c (patch)
tree790f9b03c18b9e69f76441b32679fdbd78c5c89a /tessen
parent802e79c127920926a2287b2575e80103ffe5edc5 (diff)
chore: don't reveal selected file name
Diffstat (limited to 'tessen')
-rwxr-xr-xtessen4
1 files changed, 2 insertions, 2 deletions
diff --git a/tessen b/tessen
index 759da98..6e40f06 100755
--- a/tessen
+++ b/tessen
@@ -94,7 +94,7 @@ get_pass_data() {
if [[ $_PASS_BACKEND == "pass" ]]; then
mapfile -t passdata < <(pass show "$_TSN_PASSFILE" 2> /dev/null)
if [[ ${#passdata[@]} -eq 0 ]]; then
- _die "$_TSN_PASSFILE is empty"
+ _die "the selected file is empty"
fi
elif [[ $_PASS_BACKEND == "gopass" ]]; then
# the output from gopass show -n -f that prints the first line and the
@@ -102,7 +102,7 @@ get_pass_data() {
# the output is detected to be a terminal ... weird
mapfile -t passdata < <(gopass show -n -f "$_TSN_PASSFILE" 2> /dev/null)
if [[ ${#passdata[@]} -eq 0 ]]; then
- _die "$_TSN_PASSFILE is empty"
+ _die "the selected file is empty"
fi
fi