updated bash script so it runs now