Explorar o código

Fixed removefromgroups not removing users from posix groups

theo %!s(int64=2) %!d(string=hai) anos
pai
achega
0c49211a13
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      removefromgroups

+ 1 - 1
removefromgroups

@@ -29,7 +29,7 @@ shift
 for g in $@; do
     if group_exists $g ; then
 	if group_is_posix $g; then
-		user_is_posix $uid || echo "User $uid is not a posixAccount, skipping posixGroup $g..." && continue
+		user_is_posix $uid || { echo "User $uid is not a posixAccount, skipping posixGroup $g..." && continue; }
 		group="$group_posix"
 	else
 		group="$group_ofnames"