From bd4201027bbca53b58c304529a57e7ee0e14f984 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 18 Jun 2025 17:03:04 -0400 Subject: [PATCH] [bin] Fix nyt symlink with cp --- bin/.bin/nyt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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