summaryrefslogtreecommitdiff
path: root/.local/bin/git-credential-vlt
blob: af217e37faa7afdeef5206f128007bcae2cd24fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 }
'