copy_potd.sh: special case for unsplash
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user