-Add warning if about to mkpath but path exists as a non-directory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8863 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -3948,6 +3948,10 @@ sub cpNetbootImages {
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (! -d $destDir) {
 | 
			
		||||
                if ( -e $destDir ) {
 | 
			
		||||
                    xCAT::SvrUtils::sendmsg([1,"Could not copy netboot contents to $destDir, it exists but is not currently a directory"], $output_handler);
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
                mkpath($destDir);
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user