- # default return code is 0, which assumes a key was found for
- # every host. code will be set to 1 if a key is not found for at
- # least one host
- returnCode=0
-
- # take all the hosts from the known_hosts file (first field), grep
- # out all the hashed hosts (lines starting with '|')...
- for line in $(cat "$KNOWN_HOSTS" | meat | cut -d ' ' -f 1 | grep -v '^|.*$') ; do
- # break up hosts into separate words
- update_known_hosts $(echo "$line" | tr , ' ') || returnCode=1
- done