Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.