pass

- posix password manager
git clone git://git.acid.vegas/pass.git
Log | Files | Refs | Archive | README | LICENSE

commit 6f67951c03407f02fa243b4537b6b91506c80b6f
parent df2fcc16a3c4be356e9605e6142d67646647b7c4
Author: acidvegas <acid.vegas@acid.vegas>
Date: Sat, 20 Jan 2024 18:00:06 -0500

Mirrors updated to add codeberg, LICENSE updated for 2024

Diffstat:
MLICENSE | 2+-
MREADME.md | 5++---
Mpass | 4++--

3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/LICENSE b/LICENSE
@@ -1,6 +1,6 @@
 ISC License
 
-Copyright (c) 2023, acidvegas <acid.vegas@acid.vegas>
+Copyright (c) 2024, acidvegas <acid.vegas@acid.vegas>
 
 Permission to use, copy, modify, and/or distribute this software for any
 purpose with or without fee is hereby granted, provided that the above
diff --git a/README.md b/README.md
@@ -69,12 +69,10 @@ keytocard
 save
 ```
 
-
 ## Ideas & TODO
 - Hash file names for obsurity *(`pass rm <entry>` & `pass mv <entry>` since file names will be hashed)*
 - Better way than using a hard coded `GPG_ID` & maybe on the fly `METHOD` selection
 
 ___
 
-###### Mirrors
-[acid.vegas](https://git.acid.vegas/pass) • [GitHub](https://github.com/acidvegas/pass) • [GitLab](https://gitlab.com/acidvegas/pass) • [SuperNETs](https://git.supernets.org/acidvegas/pass)
+###### Mirrors for this repository: [acid.vegas](https://git.acid.vegas/pass) • [SuperNETs](https://git.supernets.org/acidvegas/pass) • [GitHub](https://github.com/acidvegas/pass) • [GitLab](https://gitlab.com/acidvegas/pass) • [Codeberg](https://codeberg.org/acidvegas/pass)
+\ No newline at end of file
diff --git a/pass b/pass
@@ -15,11 +15,11 @@ fi
 mkdir -p $PASS_DIR
 
 edit() {
-	local template="pw.XXXXXXXXXXXXX"
+	template="pw.XXXXXXXXXXXXX"
 	if [ -d /dev/shm ] && [ -w /dev/shm ] && [ -x /dev/shm ]; then
 		tmp=$(mktemp /dev/shm/$template)
 	elif [ ! -z $PREFIX ] && [ -d $PREFIX/tmp ]; then
-		tmp=$(mktemp $PREFIX/usr/tmp/$template)
+		tmp=$(mktemp $PREFIX/usr/tmp/$template) # For users on Termux
 	else
 		echo "warning: /dev/shm does not exist or is missing permissions required for temporary files (using insecure fallback to /tmp directory)"
 		tmp=$(mktemp /tmp/$template)