]> git.openstreetmap.org Git - dns.git/blobdiff - bin/mkgeo
Don't leave temporary files lying around
[dns.git] / 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