lib/hash_delegator.rb in markdown_exec-2.0.3.1 vs lib/hash_delegator.rb in markdown_exec-2.0.3.2
- old
+ new
@@ -1142,13 +1142,13 @@
end
end
def link_block_data_eval(link_state, code_lines, selected, link_block_data, block_source:)
all_code = HashDelegator.code_merge(link_state&.inherited_lines, code_lines)
- cmd = "#{@delegate_object[:shell]} #{file.path}"
output_lines = []
Tempfile.open do |file|
+ cmd = "#{@delegate_object[:shell]} #{file.path}"
file.write(all_code.join("\n"))
file.rewind
if link_block_data.fetch(LinkKeys::Exec, false)
@run_state.files = Hash.new([])