From 00d75e738b2deee6c823c832c68d6bcaece9a23e Mon Sep 17 00:00:00 2001 From: tilghman Date: Thu, 26 Jun 2008 22:50:17 +0000 Subject: Merged revisions 125583 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r125583 | tilghman | 2008-06-26 17:49:16 -0500 (Thu, 26 Jun 2008) | 2 lines Don't hang if the command is blank ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@125584 f38db490-d61c-443f-a65b-d21fe96a405b --- contrib/scripts/astcli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/scripts') 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 (<>) { -- cgit v1.2.3