kkimurak / ssl-setup

Bash script that setup the official RoboCup-SSL tools with required packages ( https://github.com/RoboCup-SSL/ )
4 stars 0 forks source link

install firefox only if needed #47

Closed kkimurak closed 4 years ago

kkimurak commented 4 years ago

This script will install firefox (see commit 3c65689 and #35), even if valid web-browser is installed.

To avoid useless installation, do like:

result=0
command -v "${xdg-settings get default-web-browser | sed "s:.desktop::g")" || result="$?"
if [ result != 0 ]; then
  # install firefox
fi