- while IFS=: read -r group x x users
- do while IFS=, read -r user
- do eval local home\; home="~$user"
- cat "$home"/etc/ssh/authorized_keys
- done <<-EOF
+ while test -n "$users" && IFS=: read -r group x x users
+ do while IFS=, read -r user users <<-EOF