copy_potd.sh: special case for unsplash
This commit is contained in:
parent
3596f00cff
commit
bbc1db4ff4
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue