     shell(cmd, args)
     |> result
   end
-
-  def result({_ , 0}), do: nil
-  def result({result, _}), do: Mix.raise """
-  Nerves encountered an error. #{inspect result}
-  """
-
 end

    end

    Mix.Task.run "compile", []
    Nerves.Utils.Shell.info "Building OTP Release..."
    Mix.Task.run "release.clean", ["--implode", "--no-confirm"]
    Mix.Task.run "release", ["--silent"]

    rel2fw_path = Path.join(system_path, "scripts/rel2fw.sh")
    cmd = "bash"
    args = [rel2fw_path]

  """
  def run(_args) do
    preflight()
    debug_info "Nerves Firmware Assembler"

    system_path = System.get_env("NERVES_SYSTEM") || Mix.raise """
      Environment variable $NERVES_SYSTEM is not set
