Justfile: improve _get_path_entry command

This commit is contained in:
steveej 2021-08-21 02:44:05 +02:00
parent fbb7d5dd50
commit f1449bdac8

View file

@ -276,8 +276,7 @@ verify-n-unlock sshserver attempts="10":
exit 1
_get_pass_entry path key:
pass show {{path}}| grep -E "^{{key}}:" | awk '{ print $2 }'
# jq -sR 'split("\n") | map(split(":"))' <(pass show Infrastructure/VPS/CFB4ED74 | grep -E "^[A-Za-z_]+:")
pass show {{path}}| grep -E "^{{key}}:" | sed -E 's/^[^:]+: *//g'
run-with-channels +cmds:
#!/usr/bin/env bash