diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-20 23:36:29 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-20 23:36:29 +0200 |
commit | 4ef7faeea637c8dc32728af1b848c5fe51acdb3c (patch) | |
tree | d333fb8c2b37e4a9d9531c7697674cf588d05658 /.local/bin | |
parent | 535d7f305167396797269277e92680481b22af32 (diff) |
git-credential-vlt: Add vlt support for Git
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/git-credential-vlt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.local/bin/git-credential-vlt b/.local/bin/git-credential-vlt new file mode 100755 index 0000000..af217e3 --- /dev/null +++ b/.local/bin/git-credential-vlt @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +get) ;; +*) exit 0 +esac + +gawk ' +BEGIN { FS = "=" } +$1 == "username" { + cmd = "vlt raw Email \"" $2 "\"" + cmd | getline passwd + close(cmd) + print "password=" passwd +} +{ print } +' |