From 2c7e30217188f49097ce86b081b1a694822ab363 Mon Sep 17 00:00:00 2001 From: Konstantin Schukraft Date: Sat, 2 Jan 2021 19:30:36 +0100 Subject: Add FreeBSD compatibility --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index fc0c3c3..bbc5379 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,6 @@ -#!/bin/bash -eux +#!/usr/bin/env bash + +set -eux if [[ "$#" -lt 1 || ( ! ( ( "$1" == "firefox" && "$#" -eq 1 ) || @@ -16,10 +18,14 @@ BROWSER="$(echo $1 | tr '[:upper:]' '[:lower:]')" case "$OS $BROWSER" in "Linux firefox") MANIFEST_LOCATION="$HOME/.mozilla/native-messaging-hosts";; + "FreeBSD firefox") + MANIFEST_LOCATION="$HOME/.mozilla/native-messaging-hosts";; "Darwin firefox") MANIFEST_LOCATION="$HOME/Library/Application Support/Mozilla/NativeMessagingHosts";; "Linux chrome") MANIFEST_LOCATION="$HOME/.config/google-chrome/NativeMessagingHosts";; + "FreeBSD chromium") + MANIFEST_LOCATION="$HOME/.config/chromium/NativeMessagingHosts";; "Linux chromium") MANIFEST_LOCATION="$HOME/.config/chromium/NativeMessagingHosts";; "Darwin chrome") -- cgit v1.2.3