From 226e94861dae548fe40285c1b317099a46b031fb Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Tue, 23 Sep 2003 13:03:56 +0000 Subject: fixed hdInstallPath not working on some cases. --- perl-install/any.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/any.pm') diff --git a/perl-install/any.pm b/perl-install/any.pm index 721fe7fcf..525ced9f5 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -72,9 +72,9 @@ sub enableShadow() { } sub hdInstallPath() { - my $tail = first(readlink("/tmp/image") =~ m|^/tmp/hdimage/(.*)|); + my $tail = first(readlink("/tmp/image") =~ m|^/tmp/hdimage/?(.*)|); my $head = first(readlink("/tmp/hdimage") =~ m|$::prefix(.*)|); - $tail && ($head ? "$head/$tail" : "/mnt/hd/$tail"); + defined $tail && ($head ? "$head/$tail" : "/mnt/hd/$tail"); } sub kernelVersion() { -- cgit v1.2.1