[bin] Fix nyt symlink with cp
This commit is contained in:
@ -10,9 +10,8 @@ else
|
|||||||
DATEPATH=$(date +"%Y/%m/%d")
|
DATEPATH=$(date +"%Y/%m/%d")
|
||||||
curl -o /tmp/nyt.pdf -L https://static01.nyt.com/images/$DATEPATH/nytfrontpage/scan.pdf
|
curl -o /tmp/nyt.pdf -L https://static01.nyt.com/images/$DATEPATH/nytfrontpage/scan.pdf
|
||||||
convert -density 150 -quality 75 $TMPFILE $OUTFILE
|
convert -density 150 -quality 75 $TMPFILE $OUTFILE
|
||||||
cd $BASEDIR
|
rm $BASEDIR/today.jpg
|
||||||
rm today.jpg
|
cp $OUTFILE $BASEDIR/today.jpg
|
||||||
ln -sf $OUTFILE today.jpg
|
|
||||||
curl -H "X-Title: NYT headlines today" -d "https://files.lab.unbl.ink/nytimes/today.jpg" https://ntfy.unbl.ink/news
|
curl -H "X-Title: NYT headlines today" -d "https://files.lab.unbl.ink/nytimes/today.jpg" https://ntfy.unbl.ink/news
|
||||||
rm $TMPFILE
|
rm $TMPFILE
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user