tessen

default description
git clone https://git.awy.one/tessen.git
Log | Files | Refs | README | LICENSE

commit 2a17c6160c4a109220f2f918454854d52d696234
parent 87877a06fc7965b4d9c4cbd6bc53e567cedf7192
Author: Ayush Agarwal <ayushnix@fastmail.com>
Date:   Wed,  2 Mar 2022 07:14:12 +0530

fix: don't clear the clipboard in trap function

there's no need to aggressively clear the clipboard in the trap function
and there's also no need to call `_clear` in `_die` because `exit 1`
should call `_clear` because of the trap

Diffstat:
Mtessen | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/tessen b/tessen @@ -634,9 +634,6 @@ is_installed() { } _clear() { - if [[ $tsn_action =~ ^(copy|both|default)$ ]]; then - wl-copy --clear - fi unset -v tsn_passfile tsn_passdata tsn_username tsn_password tsn_url unset -v tsn_autotype chosen_key } @@ -645,7 +642,6 @@ _die() { if [[ -n $1 ]]; then printf "%s\n" "$1" >&2 fi - _clear exit 1 }