Minor tweak allows the 'quit' command to work inside of a resource script

git-svn-id: file:///home/svn/framework3/trunk@7177 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2009-10-17 16:53:21 +00:00
parent d0b07c0c3f
commit 8d9356f40d
1 changed files with 2 additions and 3 deletions

View File

@ -110,11 +110,10 @@ module Shell
# Run the command processing loop.
#
def run(&block)
stop_flag = false
begin
while ((line = input.pgets))
while (not self.stop_flag and (line = input.pgets))
log_output(input.prompt)
# If a block was passed in, pass the line to it. If it returns true,