fi
user_ssh_dir=$(eval echo ~$user)/.ssh
+if [[ ! -s $user_ssh_dir/authorized_keys ]]; then
+ echo missing $user_ssh_dir/authorized_keys. bad sign. bailing >&2
+ exit 1
+fi
# remove broken links, or else rsync has error about them.
find $user_ssh_dir -xtype l -exec rm '{}' \;