]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixup output of fsxs --variable
authorStefan Knoblich <stkn@freeswitch.org>
Thu, 27 Nov 2008 21:40:29 +0000 (21:40 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Thu, 27 Nov 2008 21:40:29 +0000 (21:40 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10558 d0543943-73ff-0310-b7d9-9358b9ac24b2

scripts/fsxs.in

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