Finished main.sh