mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bug fix
This commit is contained in:
parent
13162680b8
commit
2e1a4df1e1
2
inxi
2
inxi
|
@ -3264,7 +3264,7 @@ sub set_version_data {
|
||||||
open (my $fh, '<', "$self_path/$self_name");
|
open (my $fh, '<', "$self_path/$self_name");
|
||||||
while( my $row = <$fh>){
|
while( my $row = <$fh>){
|
||||||
chomp $row;
|
chomp $row;
|
||||||
$row =~ s/'//g;
|
$row =~ s/'|;//g;
|
||||||
if ($row =~ /^my \$self_name/ ){
|
if ($row =~ /^my \$self_name/ ){
|
||||||
$self_name = (split /=/, $row)[1];
|
$self_name = (split /=/, $row)[1];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue