mirror of
https://github.com/octoleo/Purse.git
synced 2025-01-30 02:28:30 +00:00
Merge pull request #31 from juergenhoetzel/master
Allow shell specia chars in username
This commit is contained in:
commit
d14f551e87
6
pwd.sh
6
pwd.sh
@ -74,7 +74,7 @@ read_pass () {
|
||||
fi
|
||||
|
||||
if [[ -z "${2+x}" ]] ; then
|
||||
read -p "
|
||||
read -r -p "
|
||||
Username to read? (default: all) " username
|
||||
else
|
||||
username="${2}"
|
||||
@ -87,7 +87,7 @@ read_pass () {
|
||||
get_pass "
|
||||
Enter password to unlock ${safe}: "
|
||||
printf "\n\n"
|
||||
decrypt ${password} ${safe} | grep " ${username}" || fail "Decryption failed"
|
||||
decrypt ${password} ${safe} | grep -F " ${username}" || fail "Decryption failed"
|
||||
}
|
||||
|
||||
|
||||
@ -146,7 +146,7 @@ create_username () {
|
||||
# Create username with password.
|
||||
|
||||
if [[ -z "${2+x}" ]] ; then
|
||||
read -p "
|
||||
read -r -p "
|
||||
Username: " username
|
||||
else
|
||||
username="${2}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user