i think you can loop over lists of strings in sh like this:

```
for i in chef-solo chef chef-client; do
  rm -f $PREFIX/bin/$i
  ln -sf $INSTALLER_DIR/bin/$i $PREFIX/bin || error_exit "Cannot link $i to $PREFIX/bin"
done
```

fill out the array and just make sure the chef-client 'sentinel' comes last...