mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
Utils: fixes trailing space at end of command
This commit is contained in:
@@ -513,7 +513,11 @@ sub fmt_cmd {
|
||||
$item++;
|
||||
$rv .= ( $mod_hunk =~m/ +/) ? "'$mod_hunk' " : "$mod_hunk ";
|
||||
}
|
||||
chomp $rv;
|
||||
if (rindex($rv, ' ', length($rv)-2) > 1) {
|
||||
print STDERR "[$rv]\n";
|
||||
$rv =~ s/\s+$//g;
|
||||
print STDERR "[$rv]\n";
|
||||
}
|
||||
print STDERR "\ncmd: $rv\n" if($show_err or $::quiet ne "yes");
|
||||
return $rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user