Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-11261

Refactor bash scripts to launch open ||xdg-open instead of google-chrome

      Many of the build/release scripts in build/scripts/ for the rhdh and plugin-catalog repos open a browser to facilitate tracking builds or releases.

      • rhdh-plugin-catalog
        • build/scripts/generateKonfluxReleaseDataForPlugins.sh
        • build/scripts/generatePyxisConfigForPlugins.sh
        • build/scripts/kfuxRelease.sh
        • build/scripts/triggerRespin.sh
      • rhdh
        • build/helm/prepare.sh
        • build/scripts/kfuxRelease.sh
        • build/scripts/prepareOSXARM64.sh
        • build/scripts/renderCatalogs.sh
        • build/scripts/tagRelease.sh
        • build/scripts/triggerRespin.sh

      Currently they use:

      google-chrome ...

      or

      if [[ $(command -v google-chrome) == *"google-chrome"* ]] || [[ $(which google-chrome 2>&1) != *"which: no google-chrome"* ]]; then 
      google-chrome ...

      But to be more browser- and OS-agnostic, we should use `open` on mac and `xdg-open` on linux.

              Unassigned Unassigned
              nickboldt Nick Boldt
              RHDH Cope
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: