mirror of
https://github.com/octoleo/Purse.git
synced 2024-12-28 20:12:38 +00:00
Don't evaluate \ when reading username
This allows entering Microsoft Domain users like DOMAIN\USER.
This commit is contained in:
parent
744f9b2a68
commit
b2ac781092
4
pwd.sh
4
pwd.sh
@ -74,7 +74,7 @@ read_pass () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${2+x}" ]] ; then
|
if [[ -z "${2+x}" ]] ; then
|
||||||
read -p "
|
read -r -p "
|
||||||
Username to read? (default: all) " username
|
Username to read? (default: all) " username
|
||||||
else
|
else
|
||||||
username="${2}"
|
username="${2}"
|
||||||
@ -146,7 +146,7 @@ create_username () {
|
|||||||
# Create username with password.
|
# Create username with password.
|
||||||
|
|
||||||
if [[ -z "${2+x}" ]] ; then
|
if [[ -z "${2+x}" ]] ; then
|
||||||
read -p "
|
read -r -p "
|
||||||
Username: " username
|
Username: " username
|
||||||
else
|
else
|
||||||
username="${2}"
|
username="${2}"
|
||||||
|
Loading…
Reference in New Issue
Block a user