pass- posix password manager |
git clone git://git.acid.vegas/pass.git |
Log | Files | Refs | Archive | README | LICENSE |
commit 78dfa80712483f5f6edc447c863b191436538df1
parent c28199ad4b758d8d84f1af4a80065869dbcdb48c Author: acidvegas <acid.vegas@acid.vegas> Date: Sat, 26 Aug 2023 15:32:40 -0400 mktemp with -d causes errors on other distros, just making a temp file instead of directory instead (removing -d) Diffstat:
|
1 file changed, 2 insertions(+), 3 deletions(-) |
diff --git a/pass b/pass @@ -2,7 +2,6 @@ # posix password manager - developed by acidvegas (https://git.acid.vegas/pass) umask 077 - export GPG_TTY=$(tty) GPG_ID="acidvegas" # change me @@ -19,10 +18,10 @@ mkdir -p $PASS_DIR edit() { local template="pw.XXXXXXXXXXXXX" if [ -d /dev/shm ] && [ -w /dev/shm ] && [ -x /dev/shm ]; then - tmp=$(mktemp -d /dev/shm/$template) + tmp=$(mktemp /dev/shm/$template) else echo "warning: /dev/shm does not exist or is missing permissions required for temporary files (using insecure fallback to /tmp directory)" - tmp=$(mktemp -d /tmp/$template) + tmp=$(mktemp /tmp/$template) fi rm_tmp() { rm -rf "$tmp" |