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-b9f4589650daunstable
parent
d0b07c0c3f
commit
8d9356f40d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue