copy_potd.sh: special case for unsplash
This commit is contained in:
@ -9,6 +9,9 @@ then
|
|||||||
echo "No POTD type specified."
|
echo "No POTD type specified."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if [[ $TYPE == "unsplash" ]]; then
|
||||||
|
TYPE="unsplash:1065976"
|
||||||
|
fi
|
||||||
ORIGINAL="${SOURCE}/${TYPE}"
|
ORIGINAL="${SOURCE}/${TYPE}"
|
||||||
if [[ -e $ORIGINAL ]]; then
|
if [[ -e $ORIGINAL ]]; then
|
||||||
FILENAME="${TYPE}_${TODAY}.jpg"
|
FILENAME="${TYPE}_${TODAY}.jpg"
|
||||||
|
Reference in New Issue
Block a user