mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
fix genpwd, exclude backlash from created passwords
This commit is contained in:
parent
0860036eff
commit
6965891895
|
@ -152,7 +152,8 @@ function genpwd
|
||||||
else
|
else
|
||||||
strlen=32
|
strlen=32
|
||||||
fi
|
fi
|
||||||
/bin/cat /dev/urandom | env LC_CTYPE=C gtr -dc '[:graph:]' | fold -w $strlen | head -n 1
|
# All characters excluding backlash
|
||||||
|
env LC_CTYPE=C tr -dc '[:graph]\' < /dev/urandom | fold -w $strlen | head -n 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user