Skip to content

Commit

Permalink
Edit file name for unsupported OS
Browse files Browse the repository at this point in the history
  • Loading branch information
mbashia committed Nov 19, 2024
1 parent ab49c6e commit e768b8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/phx_tools_web/live/phx_tools_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ defmodule PhxToolsWeb.PhxToolsLive.Index do
end

defp get_script_filename(live_action_or_os) do
"#{get_operating_system(to_string(live_action_or_os))}.sh"
case "#{get_operating_system(to_string(live_action_or_os))}" do
"Unsupported OS" -> ""
other -> other <> ".sh"
end
end

@spec get_operating_system(String.t()) :: String.t()
Expand Down

0 comments on commit e768b8b

Please sign in to comment.