[pass] [PATCH 2/3] Call cleanup_tmp for Mac users

Caleb Marble cm at marblenix.com
Mon Jun 2 02:47:16 CEST 2014


---
 src/password-store.sh |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/password-store.sh b/src/password-store.sh
index e68384b..d8c052e 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -415,6 +415,9 @@ cmd_edit() {
 	local tmp_file="$(TMPDIR="$SECURE_TMPDIR" mktemp -t "$template")"
 	eval "shred_tmpfile() {
 		$SHRED '$tmp_file'
+		if [[ $(uname) == Darwin ]]; then
+			cleanup_tmp
+		fi
 		rm -rf '$SECURE_TMPDIR' '$tmp_file'
 	}"
 	trap shred_tmpfile INT TERM EXIT
-- 
1.7.10.4



More information about the Password-Store mailing list