I had "#!/bin/sh" as the first line of this script, but it should be "#!/bin/bash". The script broke when I upgraded to Edgy because they changed /bin/sh to symlink to /bin/dash instead of /bin/bash, and the for loop I used is apparently specific to bash.
Update
I had "#!/bin/sh" as the first line of this script, but it should be "#!/bin/bash". The script broke when I upgraded to Edgy because they changed /bin/sh to symlink to /bin/dash instead of /bin/bash, and the for loop I used is apparently specific to bash.