diff --git a/src/tm_mad/TMScript.rb b/src/tm_mad/TMScript.rb index c82abe8..741c085 100644 --- a/src/tm_mad/TMScript.rb +++ b/src/tm_mad/TMScript.rb @@ -138,6 +138,8 @@ def initialize(script_text, logger=nil) # Returns an array where first element tells if succeded and the # second one is the error message in case of failure. def execute(plugin) + return [true,""] if @lines.empty? + result=@lines.each {|line| res=plugin.execute(@logger, *line) if !res