2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-27 14:51:10 +00:00

fix 1327 after pessl kitcomponents are removed from osimage, the INCLUDE env file for pessl are not cleaned up.

This commit is contained in:
bybai
2016-07-06 03:36:16 -04:00
parent e3677ff9b4
commit cf9636ae45

View File

@@ -3205,7 +3205,7 @@ sub rmkitcomp
#check if the parameter is used by other kitcomponent
foreach my $otherline ( @otherlines ) {
chomp $otherline;
if ( $line =~ m!$otherline! ) {
if ( $otherline && $line =~ m!$otherline! ) {
$found = 1;
last;
}
@@ -3216,7 +3216,7 @@ sub rmkitcomp
} else {
foreach my $content ( @contents ) {
chomp $content;
if ( $line =~ m!$content! ) {
if ( $content && $line =~ m!$content! ) {
$found = 1;
last;
}