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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user