diff --git a/bin/.bin/nyt b/bin/.bin/nyt index 93a41b5..dfd0acf 100755 --- a/bin/.bin/nyt +++ b/bin/.bin/nyt @@ -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