mirror of
https://github.com/octoleo/Purse.git
synced 2025-02-06 05:58:34 +00:00
Style cleanup
This commit is contained in:
parent
e3a3c78464
commit
4ddbc34b96
9
pwd.sh
9
pwd.sh
@ -26,21 +26,20 @@ get_pass () {
|
||||
while IFS= read -p "${prompt}" -r -s -n 1 char ; do
|
||||
if [[ ${char} == $'\0' ]] ; then
|
||||
break
|
||||
fi
|
||||
if [[ ${char} == $'\177' ]]; then
|
||||
elif [[ ${char} == $'\177' ]] ; then
|
||||
if [[ -z "${password}" ]] ; then
|
||||
prompt=''
|
||||
prompt=""
|
||||
else
|
||||
prompt=$'\b \b'
|
||||
password="${password%?}"
|
||||
fi
|
||||
else
|
||||
prompt='*'
|
||||
prompt="*"
|
||||
password+="${char}"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -z ${password+x} ] ; then
|
||||
if [[ -z ${password} ]] ; then
|
||||
fail "No password provided"
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user