From cf670956d84c5566e851150fb7a59214c386abb6 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 10 Oct 2022 15:08:28 -0400 Subject: [PATCH] Use $PROGRAM when delegating pass commands --- gocrypt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gocrypt.bash b/gocrypt.bash index d6a9f9a..858b398 100755 --- a/gocrypt.bash +++ b/gocrypt.bash @@ -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"