[PATCH 6/6] web--browse: special-case chromium path
- From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- Date
- Nov 29, 2010, 14:47 UTC
- Message-ID
- <1291042075-19983-7-git-send-email-giuseppe.bilotta@gmail.com>
- In-Reply-To
- <1291042075-19983-1-git-send-email-giuseppe.bilotta@gmail.com>
On Debian-based distributions, Chromium the browser is available under the name chromium-browser rather than chromium, to prevent conflicts with the Chromium B.S.U. game.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> --- git-web--browse.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/git-web--browse.sh b/git-web--browse.sh index f991dd0..9cd66e4 100755 --- a/git-web--browse.sh +++ b/git-web--browse.sh @@ -42,6 +42,9 @@ valid_tool() { init_browser_path() { browser_path=$(git config "browser.$1.path") + if test "$1" = chromium ; then + type chromium-browser > /dev/null 2>&1 && browser_path=chromium-browser + fi test -z "$browser_path" && browser_path="$1" }
-- 1.7.3.2.624.gec6c7.dirty