How do I write a BASH script to download and unzip file on a Mac?
I need to create a bash script that will work on a mac. It needs to download a ZIP file of a site and unzip it to a specific location. Download the ZIP file ( curl -O ) Unzip the files to a specific location ( unzip filename.zip path/to/save ) Delete the .zip file I need to make it so people can double-click the text file on their desktop and it will automatically run in terminal. How do I make it so that the user can double click the icon on the desktop and it will run? What extension does the file need? OSX uses the same GNU sh/bash as Linux #!/bin/sh mkdir /tmp/some_tmp_dir && \ cd /tmp