this is actually a bash script

This fixes the script for me on ubuntu.