Updated LICENSE year to 2026 and corrected GitHub URL in pass script comments. Improved command error messages for clarity.

This commit is contained in:
2026-02-14 19:35:22 -05:00
parent 6f67951c03
commit a35bb38bd8
2 changed files with 8 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
ISC License
Copyright (c) 2024, acidvegas <acid.vegas@acid.vegas>
Copyright (c) 2026, 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

13
pass
View File

@@ -1,5 +1,6 @@
#!/bin/sh
# posix password manager - developed by acidvegas (https://git.acid.vegas/pass)
# posix password manager - developed by acidvegas (https://github.com/acidvegas/pass)
umask 077
export GPG_TTY=$(tty)
@@ -67,10 +68,10 @@ menu() {
cwd=$cwd/$cmd
elif [ -f $cwd/$cmd ]; then
if [ $METHOD = "copy" ]; then
export PINENTRY_USER_DATA="dmenu" | gpg -d $GPG_OPTS $cwd/$cmd | dmenu "$@" | xclip -selection clipboard
sleep 3 && xclip -selection clipboard /dev/nul
PINENTRY_USER_DATA="dmenu" gpg -d $GPG_OPTS $cwd/$cmd | dmenu "$@" | xclip -selection clipboard
sleep 3 && xclip -selection clipboard /dev/null
elif [ $METHOD = "type" ]; then
export PINENTRY_USER_DATA="dmenu" | gpg -d $GPG_OPTS $cwd/$cmd | dmenu "$@" | xdotool type --delay 3 "$D"
PINENTRY_USER_DATA="dmenu" gpg -d $GPG_OPTS $cwd/$cmd | dmenu "$@" | xdotool type --delay 3 "$D"
fi
break
fi
@@ -111,7 +112,7 @@ if [ "$#" = '1' ]; then
command -v pinentry >/dev/null || { echo "error: missing required package 'pinentry'"; exit 1; }
command -v pinentry-dmenu >/dev/null || { echo "error: missing required package 'pinentry-dmenu'"; exit 1; }
if [ $METHOD = "copy" ]; then
command -v dmenu >/dev/null || { echo "error: missing required package 'xclip'"; exit 1; }
command -v xclip >/dev/null || { echo "error: missing required package 'xclip'"; exit 1; }
elif [ $METHOD = 'type' ]; then
command -v xdotool >/dev/null || { echo "error: missing required package 'xdotool'"; exit 1; }
else
@@ -133,4 +134,4 @@ elif [ "$#" = '2' ]; then
fi
else
tree -NCl --noreport $PASS_DIR 3>&- | tail -n +2 | sed -E 's/\.gpg(\x1B\[[0-9]+m)?( ->|$)/\1\2/g'
fi
fi