forked from mirrors/nixpkgs
* Don't complain about groups with no gid.
svn path=/nixos/trunk/; revision=9757
This commit is contained in:
parent
524f1fa376
commit
4b1ed0ded2
|
@ -11,7 +11,7 @@ cat "$2" | while true; do
|
|||
echo "updating group $name..."
|
||||
oldIFS="$IFS"; IFS=:; set -- $curEnt; IFS="$oldIFS"
|
||||
prevGid=$3
|
||||
if test "$prevGid" != "$gid"; then
|
||||
if test -n "$gid" -a "$prevGid" != "$gid"; then
|
||||
groupmod "$name" --gid $gid
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue