[asterisk-commits] tilghman: trunk r125583 - /trunk/contrib/scripts/astcli
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 26 17:49:16 CDT 2008
Author: tilghman
Date: Thu Jun 26 17:49:16 2008
New Revision: 125583
URL: http://svn.digium.com/view/asterisk?view=rev&rev=125583
Log:
Don't hang if the command is blank
Modified:
trunk/contrib/scripts/astcli
Modified: trunk/contrib/scripts/astcli
URL: http://svn.digium.com/view/asterisk/trunk/contrib/scripts/astcli?view=diff&rev=125583&r1=125582&r2=125583
==============================================================================
--- trunk/contrib/scripts/astcli (original)
+++ trunk/contrib/scripts/astcli Thu Jun 26 17:49:16 2008
@@ -101,7 +101,7 @@
$attribs->{completion_function} = \&tab_completion;
while (defined($_ = $term->readline($prompt))) {
(logoff() and exit) if $_ =~ /exit|quit/; # Give them a way to exit the "terminal"
- print send_command($_);
+ print send_command($_) if $_ !~ m/^\s*$/;
}
} else {
while (<>) {
More information about the asterisk-commits
mailing list