summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-06-26 22:49:16 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-06-26 22:49:16 +0000
commit115ff1bb37ecc52635e5d07649fed62b2d55a898 (patch)
treeb1b547925ab44bff893d82eac15dbb3408d5a11d /contrib
parent83d8317d347918d342d7f460b9adf1c1c0bea913 (diff)
Don't hang if the command is blank
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/astcli2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/astcli b/contrib/scripts/astcli
index 723e1ba64..0ea245f14 100755
--- a/contrib/scripts/astcli
+++ b/contrib/scripts/astcli
@@ -101,7 +101,7 @@ if ($action eq '-' || !defined $action || $action eq '') {
$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 (<>) {