Avoiding [process completed] prompt after terminal script ends on Mac OS X

In Terminal Preferences, in Profiles pane select the Profile you use (should say "default" under it's name), select sub-pane Shell and change «When the shell exits:» to «Close if the shell exited cleanly».

It will not hide the [Process completed] message, but will close the window if exit code was successful.