From 7dbb215136b6b2471b40b55e3f285935df110224 Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Fri, 7 Jan 2011 12:15:26 +0000 Subject: [PATCH 1/1] Fix issue where existing symlink is not updated also failed silently :-( --- script/gen.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/gen.pl b/script/gen.pl index 76734bf..82ab224 100755 --- a/script/gen.pl +++ b/script/gen.pl @@ -26,7 +26,9 @@ do_web() if exists $opt{web}; ## Add the exim-html-current symlink print "Symlinking exim-html-current to exim-html-$opt{latest}\n"; -symlink( "$opt{docroot}/exim-html-$opt{latest}", "$opt{docroot}/exim-html-current" ); +unlink("$opt{docroot}/exim-html-current") if ( -l "$opt{docroot}/exim-html-current" ); +symlink( "$opt{docroot}/exim-html-$opt{latest}", "$opt{docroot}/exim-html-current" ) + || die "symlink to $opt{docroot}/exim-html-current failed"; ## Generate the website files sub do_web { -- 2.30.2