diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-20 22:26:32 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-20 22:26:32 +0200 |
| commit | 10e9e42bb6862a97539346c9d11c328fb73cfe2f (patch) | |
| tree | d1001fcad0ebd610ffcdc1c25b75a01cfb1772bb /scripts | |
| parent | cc9863fa8f865fd92d9fcd4ed47e23c24a979db0 (diff) | |
| download | bokf-10e9e42bb6862a97539346c9d11c328fb73cfe2f.tar.gz bokf-10e9e42bb6862a97539346c9d11c328fb73cfe2f.zip | |
bokftui-bw: fall back to the checkout in the current directory
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/bokftui-bw | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/bokftui-bw b/scripts/bokftui-bw index 985714d..7f5a688 100755 --- a/scripts/bokftui-bw +++ b/scripts/bokftui-bw @@ -12,8 +12,9 @@ # BOKF_BW_FIELD custom field that holds the secret (default: login.password) # BOKF_BW_KIND password (default) exports BOKFD_PASSWORD; # token exports BOKFD_TOKEN -# BOKFTUI binary to exec (default: build/bokftui in the checkout the -# script lives in, else bokftui from PATH) +# BOKFTUI binary to exec (default: build/bokftui next to the script's +# checkout, then ./build/bokftui in the current directory, else +# bokftui from PATH) # # Works with the official Bitwarden CLI (bw) or with rbw. With bw the session # key is cached in ~/.cache/bokf/bw-session (mode 0600) so the master password @@ -32,6 +33,8 @@ if [ -z "$BOKFTUI" ]; then root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) if [ -x "$root/build/bokftui" ]; then BOKFTUI="$root/build/bokftui" + elif [ -x "./build/bokftui" ]; then + BOKFTUI="$PWD/build/bokftui" else BOKFTUI=bokftui fi |
