Skip to content

Instantly share code, notes, and snippets.

@alghanmi
Created December 9, 2016 01:24
Show Gist options
  • Save alghanmi/fb3575c24cbcb5f4cb13a02ed5f8f6c4 to your computer and use it in GitHub Desktop.
Save alghanmi/fb3575c24cbcb5f4cb13a02ed5f8f6c4 to your computer and use it in GitHub Desktop.
#!/bin/bash
##
## Download the RSS feed of a podcast
## Args: $1 -- destination file
## $2 -- URL for podcast feed
## TODO:
## - validate parameters
## - ensure log location exists
curl -sLo "$1" "$2"
echo "[$1] - $(date '+%Y-%m-%d @ %H:%M:%S')" | tee -a /var/log/podcast_sync.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment