copy_potd.sh: special case for unsplash

This commit is contained in:
Lukáš Kucharczyk 2021-06-25 09:43:04 +02:00
parent 3596f00cff
commit bbc1db4ff4
No known key found for this signature in database
GPG Key ID: 65524498C0196B64
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ then
echo "No POTD type specified."
exit 1
fi
if [[ $TYPE == "unsplash" ]]; then
TYPE="unsplash:1065976"
fi
ORIGINAL="${SOURCE}/${TYPE}"
if [[ -e $ORIGINAL ]]; then
FILENAME="${TYPE}_${TODAY}.jpg"