[bin] Fix nyt symlink with cp
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user