aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorDavid Buckley <david@davidbuckley.ca>2021-01-02 23:03:41 -0500
committerDavid Buckley <david@davidbuckley.ca>2021-01-02 23:03:41 -0500
commit9f38203ebfb18995ac120646f3d1999b9109bdca (patch)
tree9cd2a8242f180ddc280563d31a44784765893c5d /install.sh
parent598c67a7753e80f312da0557f1c7f2305d15ead3 (diff)
parentdcce4221a2122c2d62c2f6c45761374dc8e08ecb (diff)
Merge branch 'master' of github.com:osnr/TabFS
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 7 insertions, 1 deletions
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")