Git-Presentation/bin/download-image
Jonathan Hodgson 438d357489 Finished first draft
A new auto-image is available that will download an image from the
internet, you just need to include the base64 encoded url in the include
graphics command
2020-06-16 17:32:17 +01:00

9 lines
164 B
Bash
Executable file

#!/usr/bin/env bash
name="$1"
basename="$(basename "$name")"
b64="${basename%%.*}"
b64="${b64##*-}"
url="$(echo -n "$b64" | base64 -d)"
curl -L -o "$name" "$url"