Some versions of xattr don't have the -r option, and so it'd be better to loop manually over the options and xattr them one at a time. If someone has /opt/homebrew/bin/ before /usr/bin/ on their path, this will likely cause the install command to break.