diff options
| -rwxr-xr-x | fetch_program.sh | 5 |
1 files 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 |
