Skip to content

Commit

Permalink
Use find instead globbing
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcanonical committed Feb 11, 2025
1 parent 1daeb9e commit 4f0320b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# complexity = low
# disruption = low

awk -F':' '{ if ($3 >= {{{ uid_min }}} && $3 != {{{ nobody_uid }}}) system("chgrp -f " $4" "$6"/.[^\.]?*") }' /etc/passwd
awk -F':' '{ if ($3 >= {{{ uid_min }}} && $3 != {{{ nobody_uid }}}) system("find "$6" -maxdepth 1 -name \.[^.]?* -exec chgrp -f "$4" {} \;") }' /etc/passwd

0 comments on commit 4f0320b

Please sign in to comment.