Ignoring .gpg in output for base directory aswell

This commit is contained in:
Dionysus 2023-08-26 16:07:00 -04:00
parent 6f2a8935fa
commit f5af7eb418
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

2
pass
View File

@ -53,7 +53,7 @@ menu() {
while :
do
if [ $cwd = $PASS_DIR ]; then
cmd=$(ls -p $cwd | dmenu -l 5 "$@")
cmd=$(ls -p $cwd | sed 's/\.gpg$//' | dmenu -l 5 "$@")
else
cmd=$({ echo ".."; ls -p $cwd | sed 's/\.gpg$//'; } | dmenu -l 5 "$@")
fi