you should check for errors in case wget fails.
also a single:
cat bootstrap-*.dat >> bootstrap.dat
rm bootstrap-*.dat
after the loop is easier and faster, and you can do the "cat" only in case of no previous errors.
maybe killing the wallet before running this is also a good idea.