Fixup output of fsxs --variable

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10558 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Stefan Knoblich 2008-11-27 21:40:29 +00:00
parent d44eb4a007
commit 8719823f5d
1 changed files with 3 additions and 1 deletions

View File

@ -177,12 +177,14 @@ sub fsxs_show {
sub fsxs_showq { sub fsxs_showq {
my @varlist = @_; my @varlist = @_;
my $count = 0;
if( $#varlist >= 0 ) { if( $#varlist >= 0 ) {
foreach( @varlist ) { foreach( @varlist ) {
if( defined $vars{$_} ) { if( defined $vars{$_} ) {
print "$vars{$_} "; print "$vars{$_}" . (($count < $#varlist) ? " " : "");
} }
$count++;
} }
} }
} }