lockbox

password manager
Log | Files | Refs | README | LICENSE

commit b83c0e54b3678a39a6942d9784e113f3c6b023ed
parent 70698f57783c8b360ecea63b9e0bb82dffb0958b
Author: Sean Enck <sean@ttypty.com>
Date:   Sat, 15 Oct 2022 12:04:15 -0400

fixing up completions

Diffstat:
MMakefile | 2+-
Minternal/cli/completions.bash | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -12,7 +12,7 @@ all: $(TARGET) build: $(TARGET) $(MAN) -$(TARGET): cmd/main.go internal/**/*.go go.* +$(TARGET): cmd/main.go internal/**/*.go go.* internal/cli/completions* ./scripts/version go build -trimpath -buildmode=pie -mod=readonly -modcacherw -o $@ cmd/main.go diff --git a/internal/cli/completions.bash b/internal/cli/completions.bash @@ -46,8 +46,8 @@ _lb() { needs=0 if [ "${COMP_WORDS[2]}" == "{{ $.TOTPOnceCommand }}" ] || [ "${COMP_WORDS[2]}" == "{{ $.TOTPShortCommand }}" ]; then needs=1 - else {{ if $.CanClip }} + else if [ "${COMP_WORDS[2]}" == "{{ $.TOTPClipCommand }}" ]; then needs=1 fi