Use $PROGRAM when delegating pass commands

This commit is contained in:
Peter Cai 2022-10-10 15:08:28 -04:00
parent 9ae5562869
commit cf670956d8
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ gocrypt_close() {
gocrypt_delegate() {
gocrypt_open_check
# Delegate command to another `pass` instance that manages what is inside of the mountpoint
PASSWORD_STORE_DIR="$PWD/$gocrypt_dec_dir" pass "$@"
PASSWORD_STORE_DIR="$PWD/$gocrypt_dec_dir" "$PROGRAM" "$@"
# Commit if there has been changes due to this operation
cmd_git add "$gocrypt_dir"
cmd_git commit -m "Encrypted pass operation inside gocrypt" "$gocrypt_dir" || echo "No git commit created"