You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
164 B

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