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?
.cmd
extension. – Decuplecurl -L http://example.org/file.zip | bsdtar -xvf - -C /path/to/save
– Moorish