diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 22:49:16 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 22:49:16 +0000 |
commit | ae38c922be7dffaea7d29d0c05c24a5c667b4ec7 (patch) | |
tree | b1b547925ab44bff893d82eac15dbb3408d5a11d | |
parent | 33df2882b5dc00165b6e75caf26045c72510b56c (diff) |
Don't hang if the command is blank
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125583 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | contrib/scripts/astcli | 2 |
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 (<>) { |