fixed the issue when -l is specified as '/'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12193 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user