           end
 
         case Enum.fetch(devs, idx) do
-          {:ok, [dev, _]} -> dev
+          {:ok, {dev, _}} -> dev
           _ -> Mix.raise("Invalid selection #{choice}")
         end
     end

    System.get_env(var_name) || raise_env_var_missing(var_name)
  end

  def get_devs do
    {result, 0} =
      if WSL.running_on_wsl?() do
        WSL.get_fwup_devices()

        choices =
          devs
          |> Enum.zip(0..length(devs))
          |> Enum.reduce([], fn {{dev, bytes}, idx}, acc ->
            ["#{idx}) #{bytes_to_gigabytes(bytes)} GiB found at #{dev}" | acc]
          end)
          |> Enum.reverse()
