lib/markdown_exec.rb in markdown_exec-1.3.3.3 vs lib/markdown_exec.rb in markdown_exec-1.3.3.4

- old
+ new

@@ -3,10 +3,11 @@ # encoding=utf-8 require 'English' require 'clipboard' +require 'fileutils' require 'open3' require 'optparse' require 'shellwords' require 'tty-prompt' require 'yaml' @@ -1373,11 +1374,11 @@ @options[:logged_stdout_filespec] = File.join @options[:saved_stdout_folder], @options[:logged_stdout_filename] @logged_stdout_filespec = @options[:logged_stdout_filespec] (dirname = File.dirname(@options[:logged_stdout_filespec])) - Dir.mkdir_p dirname + FileUtils.mkdir_p dirname ol = ["-STDOUT-\n"] ol += @execute_files&.fetch(EF_STDOUT, []) ol += ["\n-STDERR-\n"] ol += @execute_files&.fetch(EF_STDERR, []) @@ -1528,10 +1529,10 @@ @execute_script_filespec = @options[:saved_filespec] = File.join opts[:saved_script_folder], opts[:saved_script_filename] dirname = File.dirname(@options[:saved_filespec]) - Dir.mkdir_p dirname + FileUtils.mkdir_p dirname (shebang = if @options[:shebang]&.present? "#{@options[:shebang]} #{@options[:shell]}\n" else '' end