Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sgmills
Created August 4, 2022 16:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgmills/34feda5c63c2f4c947157beedc6c791b to your computer and use it in GitHub Desktop.
Save sgmills/34feda5c63c2f4c947157beedc6c791b to your computer and use it in GitHub Desktop.
#!/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