Justfile: improve _get_path_entry command
This commit is contained in:
parent
fbb7d5dd50
commit
f1449bdac8
1 changed files with 1 additions and 2 deletions
3
Justfile
3
Justfile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue