Skip to content

Commit

Permalink
vault-pass: accommodate gopass
Browse files Browse the repository at this point in the history
Signed-off-by: John Helmert III <[email protected]>
  • Loading branch information
ajakk committed Oct 29, 2024
1 parent 90c9e0e commit e459312
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vault-pass.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
#!/bin/sh
pass show Home/ansible-vault
#!/usr/bin/env bash
if type -P pass 2>&1 >/dev/null; then
pass show Home/ansible-vault
elif type -P gopass 2>&1 >/dev/null; then
gopass show Home/ansible-vault
else
exit 1
fi

0 comments on commit e459312

Please sign in to comment.