diff options
author | Omar Rizwan <omar@omar.website> | 2021-01-02 11:47:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 11:47:32 -0800 |
commit | 1f9d5de4dadac826655ea6b412004a9c0b56dc21 (patch) | |
tree | bb3859bcf17166d1e08cfefc8c4f08d6d87970a0 /install.sh | |
parent | fef9289e3a7f82cda6319d5f19d5a5f13f3cc44b (diff) | |
parent | 2c7e30217188f49097ce86b081b1a694822ab363 (diff) |
Merge pull request #19 from yggdr/freebsd
FreeBSD compatibility
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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") |