Skip to content

Commit

Permalink
Delete group too
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Jun 4, 2024
1 parent bf47fbc commit 3144251
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions userclean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ do
if [[ "$d" =~ ^/home/ ]] && ! [[ -d "$d" ]]; then
printf 'Directory %q missing for user: %q\n' "$d" "$u"
userdel -r $u
groupdel $u
fi
done

0 comments on commit 3144251

Please sign in to comment.