mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-24 12:59:24 -05:00
Bugfix: check return status, not return value
This commit is contained in:
parent
6213664492
commit
55d879419f
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ function createUser() {
|
|||
if [ -n "$gid" ]; then
|
||||
useraddOptions="$useraddOptions --gid $gid"
|
||||
|
||||
if [ $(cat /etc/group | cut -d: -f3 | grep -q "$gid") ]; then
|
||||
if ! $(cat /etc/group | cut -d: -f3 | grep -q "$gid"); then
|
||||
groupadd --gid $gid $gid
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue