0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Simpler subshell

This commit is contained in:
Adrian Dvergsdal 2016-03-17 21:07:49 +01:00
parent 2f921b9dfc
commit beae8655d9

View file

@ -59,7 +59,7 @@ function createUser() {
chmod 755 /home/$user
if [ -z "$pass" ]; then
pass="$(echo `</dev/urandom tr -dc A-Za-z0-9 | head -c256`)"
pass="$(tr -dc A-Za-z0-9 </dev/urandom | head -c256)"
chpasswdOptions=""
fi