From 4ef7faeea637c8dc32728af1b848c5fe51acdb3c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 20 Sep 2024 23:36:29 +0200 Subject: git-credential-vlt: Add vlt support for Git --- .local/bin/git-credential-vlt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .local/bin/git-credential-vlt (limited to '.local') 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 } +' -- cgit v1.2.3