소스 검색

Fixed removefromgroups not removing users from posix groups

theo 2 년 전
부모
커밋
0c49211a13
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"