diff --git a/userclean.sh b/userclean.sh index 7ddc523..c16ea32 100644 --- a/userclean.sh +++ b/userclean.sh @@ -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