[Bugfix] Ensure source metadata fetching uses windows-compatible filepaths (#193)
* Fixed underlying bug * Refactored windows_filenames to be a global flag; added tests * Added some random test coverage for fun
This commit is contained in:
@@ -3,6 +3,8 @@ defmodule Pinchflat.Utils.CliUtils do
|
||||
Utility methods for working with CLI executables
|
||||
"""
|
||||
|
||||
require Logger
|
||||
|
||||
alias Pinchflat.Utils.StringUtils
|
||||
|
||||
@doc """
|
||||
@@ -19,6 +21,8 @@ defmodule Pinchflat.Utils.CliUtils do
|
||||
wrapper_command = Path.join(:code.priv_dir(:pinchflat), "cmd_wrapper.sh")
|
||||
actual_command = [command] ++ args
|
||||
|
||||
Logger.info("[command_wrapper]: #{command} called with: #{Enum.join(args, " ")}")
|
||||
|
||||
System.cmd(wrapper_command, actual_command, opts)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user