From bbc1db4ff4211a5ece796227bbf49a5076a5d82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Fri, 25 Jun 2021 09:43:04 +0200 Subject: [PATCH] copy_potd.sh: special case for unsplash --- copy_potd.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copy_potd.sh b/copy_potd.sh index f228a83..3c66964 100755 --- a/copy_potd.sh +++ b/copy_potd.sh @@ -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"