incredincomp / the_hunting

a vuln finding robot
GNU General Public License v3.0
6 stars 1 forks source link

Enhanced chromium discovery #21

Closed 1efty closed 3 years ago

1efty commented 4 years ago

In some cases chromium is not a snap package and is also not installed as chromium but as chromium-browser (e.g. alpine chromium package installs as chromium-browser).

Instead of hard-coding chromium path and bin, allow for configuration of chromium bin from the environment and then use which to get the path.

e.g.

CHROMIUM="${CHROMIUM:-"chromium"}"
chromiumPath="$(which $CHROMIUM)"

Also maybe move installation to install.sh ?