Don't show OTP results in passwords

This commit is contained in:
krisdoodle45 2021-09-25 09:50:41 +02:00 committed by GitHub
parent 1d7c82ce89
commit ffdc3ceb57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ passwordList() { \
} }
getPasswords() { \ getPasswords() { \
choice="$(printf '%s\n' "${password_files[@]}" | dmenu -i -p "Passwords")" choice="$(printf '%s\n' "${password_files[@]}" | grep -v "totp" | dmenu -i -p "Passwords")"
if [ ! -z "$choice" ] if [ ! -z "$choice" ]
then then
@ -63,7 +63,6 @@ addPassword() { \
esac esac
[ -z $addPass ] && exit [ -z $addPass ] && exit
echo $addPass | grep "^$" && exit
echo $addPass | pass insert "$name" -e echo $addPass | pass insert "$name" -e
notify-send "🔒 Password for $name added!" notify-send "🔒 Password for $name added!"