aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils/NightlyTest.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/NightlyTest.pl b/utils/NightlyTest.pl
index 48e9f3511d..fab4949094 100755
--- a/utils/NightlyTest.pl
+++ b/utils/NightlyTest.pl
@@ -847,7 +847,10 @@ my $TestFinishTime = gmtime() . " GMT<br>" . localtime() . " (local)";
my $TestPlatform = `uname -a`;
eval "\$Output = <<ENDOFFILE;$TemplateContents\nENDOFFILE\n";
WriteFile "$DATE.html", $Output;
-system ( "ln -sf $DATE.html index.html" );
+
+# Remove the symlink before creating it for systems that don't have "ln -sf".
+system ("rm index.html");
+system ("ln -s $DATE.html index.html");
# Change the index.html symlink...