This is more painful than it should be, but if you are interested in placing a Bash script in the Mac OS X Dock, follows these steps. You can’t simply just drag a *.sh file to the Dock for some reason; however, if you rename the file to have the *.command suffix, then you can. This will open a separate terminal window.
mv foobar.sh foobar.command
You will likely want to edit the icon as well, so it is more recognizable. This seems a bit finicky as well, but simply open an *.ICNS file, select all / Ctrl+a, and copy / Ctrl+C. Now, right+click on the *.command script, select “Get Info”, select the existing icon in the upper left of the resulting window, and paste / Ctrl+v. It should update.