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

Consistent syntax for subshell

This commit is contained in:
Adrian Dvergsdal 2017-10-13 23:39:04 +02:00
parent 0fba0da794
commit f3212b3377
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -77,7 +77,7 @@ function createUser() {
# Retrieving user id to use it in chown commands instead of the user name
# to avoid problems on alpine when the user name contains a '.'
uid=`id $user -u`
uid="$(id -u $user)"
if [ -n "$pass" ]; then
echo "$user:$pass" | chpasswd $chpasswdOptions