mirror of
https://github.com/octoleo/Purse.git
synced 2024-12-28 20:12:38 +00:00
Merge pull request #3 from DrearyLisper/master
Add LANG=C to get tr working.
This commit is contained in:
commit
6976cff500
2
purse.sh
2
purse.sh
@ -121,7 +121,7 @@ gen_pass () {
|
|||||||
write_pass () {
|
write_pass () {
|
||||||
# Write a password and update index file.
|
# Write a password and update index file.
|
||||||
|
|
||||||
fpath=$(tr -dc "[:lower:]" < /dev/urandom | fold -w8 | head -n1)
|
fpath=$(LC_LANG=C tr -dc "[:lower:]" < /dev/urandom | fold -w8 | head -n1)
|
||||||
spath=${safedir}/${fpath}
|
spath=${safedir}/${fpath}
|
||||||
printf '%s\n' "${userpass}" | \
|
printf '%s\n' "${userpass}" | \
|
||||||
encrypt "${spath}" - || \
|
encrypt "${spath}" - || \
|
||||||
|
Loading…
Reference in New Issue
Block a user