[bin] Fix nyt symlink with cp

This commit is contained in:
2025-06-18 17:03:04 -04:00
parent 1cbef14997
commit bd4201027b

View File

@ -10,9 +10,8 @@ else
DATEPATH=$(date +"%Y/%m/%d")
curl -o /tmp/nyt.pdf -L https://static01.nyt.com/images/$DATEPATH/nytfrontpage/scan.pdf
convert -density 150 -quality 75 $TMPFILE $OUTFILE
cd $BASEDIR
rm today.jpg
ln -sf $OUTFILE today.jpg
rm $BASEDIR/today.jpg
cp $OUTFILE $BASEDIR/today.jpg
curl -H "X-Title: NYT headlines today" -d "https://files.lab.unbl.ink/nytimes/today.jpg" https://ntfy.unbl.ink/news
rm $TMPFILE
fi