mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Same issue in removePassword
This commit is contained in:
parent
bb755b367b
commit
75a60419c0
@ -14,19 +14,21 @@ passwordList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPasswords() {
|
getPasswords() {
|
||||||
choice="$(echo "$password_files" | grep -v "totp" | dmenu -i -p "Passwords")"
|
choice="$(echo "$password_files" | grep -v "totp" | dmenu -i -r -p "Passwords")"
|
||||||
|
|
||||||
[ -z "$choice" ] && exit
|
[ -z "$choice" ] && exit
|
||||||
|
|
||||||
pass -c "$choice" && notify-send "📋 Password for $choice copied!"
|
pass -c "$choice"
|
||||||
|
notify-send "📋 Password for $choice copied!"
|
||||||
}
|
}
|
||||||
|
|
||||||
getTOTP() {
|
getTOTP() {
|
||||||
choice="$(echo "$password_files" | grep "totp" | dmenu -i -p "OTP")"
|
choice="$(echo "$password_files" | grep "totp" | dmenu -i -r -p "OTP")"
|
||||||
|
|
||||||
[ -z "$choice" ] && exit
|
[ -z "$choice" ] && exit
|
||||||
|
|
||||||
pass otp -c "$choice" && notify-send "📋 OTP for $choice copied!"
|
pass otp -c "$choice"
|
||||||
|
notify-send "📋 OTP for $choice copied!"
|
||||||
}
|
}
|
||||||
|
|
||||||
addTOTP() {
|
addTOTP() {
|
||||||
@ -62,7 +64,7 @@ addPassword() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
removePassword() {
|
removePassword() {
|
||||||
name="$(pass | echo "$password_files" | dmenu -i -p "Passwords")"
|
name="$(pass | echo "$password_files" | dmenu -i -r -p "Passwords")"
|
||||||
|
|
||||||
[ -z "$name" ] && exit
|
[ -z "$name" ] && exit
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user