From dbbfd9114651c61442ae6de9dfcae8a20bf8f6b5 Mon Sep 17 00:00:00 2001 From: "user@node5.net" Date: Wed, 1 Jul 2026 20:34:54 +0200 Subject: fetch program - symlink atomic, output path with dedicated command --- fetch_program.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fetch_program.sh b/fetch_program.sh index a87d156..526e194 100755 --- a/fetch_program.sh +++ b/fetch_program.sh @@ -31,7 +31,8 @@ if [ -f "$last_json" ]; then rm -f -- "$last_json" fi -ln -sfr "$json_path" programs/current.json +ln -sfr "$json_path" "programs/next.json" +mv --no-copy "programs/next.json" "programs/current.json" echo 'New program content fetched' -echo "programs/current.json -> programs/$(readlink programs/current.json)" +stat -c %N programs/current.json -- cgit v1.3.1