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

Make sure to reset chpasswdOptions.

This commit is contained in:
Hollin Wilkins 2017-12-27 00:33:10 -08:00
parent 59ad42f086
commit 6ba0edae23

View file

@ -45,6 +45,8 @@ function createUser() {
if [ "${args[2]}" == "e" ]; then
chpasswdOptions="-e"
index=1
else
chpasswdOptions=""
fi
uid="${args[$[$index+2]]}"; validateArg "UID" "$uid" "$reUid" || return 1