=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- openbsd/update_openbsd/update_openbsd 2009/12/10 19:34:39 1.32 +++ openbsd/update_openbsd/update_openbsd 2009/12/31 16:48:19 1.33 @@ -1,5 +1,5 @@ #!/bin/sh -# $RedRiver: update_openbsd,v 1.31 2009/12/10 19:23:11 andrew Exp $ +# $RedRiver: update_openbsd,v 1.32 2009/12/10 19:34:39 andrew Exp $ installed_sets() { local misc=/usr/share/doc/README @@ -193,13 +193,13 @@ follow_symlink () { local _file=$1 - local _next=$( file $_file | - grep 'symbolic link' | - sed -e s/^.*\\\`// -e s/\\\'\$// ) - if [ -h $_next ]; then - follow_symlink $_next + # This could go circular, but I dunno how to fix that. + if [ -h $_file ]; then + follow_symlink $( file $_file | + grep 'symbolic link' | + sed -e s/^.*\\\`// -e s/\\\'\$// ) else - echo $_next + echo $_file fi }