mirror of
https://github.com/octoleo/Purse.git
synced 2025-02-06 05:58:34 +00:00
Use fixed strings for searching the password safe
Instead of passing the username as regular expression. This allows matching usernames which contain regex syntax characters like DOMAIN\user.
This commit is contained in:
parent
b2ac781092
commit
43a34d303b
2
pwd.sh
2
pwd.sh
@ -87,7 +87,7 @@ read_pass () {
|
|||||||
get_pass "
|
get_pass "
|
||||||
Enter password to unlock ${safe}: "
|
Enter password to unlock ${safe}: "
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
decrypt ${password} ${safe} | grep " ${username}" || fail "Decryption failed"
|
decrypt ${password} ${safe} | grep -F " ${username}" || fail "Decryption failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user