fixed the issue when -l is specified as '/'

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12192 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing
2012-04-11 05:52:42 +00:00
parent de59e42d39
commit 60268e8096

View File

@ -4900,6 +4900,10 @@ sub chk_resolv_conf
my $install_dir = xCAT::Utils->getInstallDir();
if ($::opt_l)
{
if ($::opt_l =~ /\/$/)
{
$::opt_l =~ s/\/$//; #remove tailing slash if needed
}
$loc = "$::opt_l/resolv_conf/$resolv_conf_name";
}
else