]> git.openstreetmap.org Git - dns.git/commitdiff
Don't leave temporary files lying around
authorTom Hughes <tom@compton.nu>
Thu, 18 Jun 2020 18:53:08 +0000 (19:53 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 18 Jun 2020 18:53:08 +0000 (19:53 +0100)
bin/mkgeo

index 2113c092f12d29b3a0c861a26013cd3b7c6c0fa8..6944c456c550631034ac1a9045802a4f1845d4e3 100755 (executable)
--- a/bin/mkgeo
+++ b/bin/mkgeo
@@ -120,7 +120,7 @@ if ($ENV{STATUSCAKE_USERNAME} && $ENV{STATUSCAKE_APIKEY})
     }
 
     DumpFile("statuscake-$$.yml", $cache);
-    link("statuscake-$$.yml", "statuscake.yml");
+    rename("statuscake-$$.yml", "statuscake.yml");
 }
 
 # Mark a cluster as up if any servers are up