Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
fetch_from="$4"
save_to="$5"
# Check for the image and grab it if it does not exist
if [ ! -f "$save_to" ]; then
curl -o "$save_to" "$fetch_from"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment