[provisioning] Update browserpass recipe

This commit is contained in:
Correl Roush 2021-12-24 18:35:06 -05:00
parent d84793d5b0
commit 154d1787c8

View file

@ -9,6 +9,9 @@ function _browserpass {
darwin) darwin)
_prefix=/usr/local/opt/browserpass _prefix=/usr/local/opt/browserpass
;; ;;
arch)
_prefix=/usr
;;
esac esac
_run "[browserpass] Installing native messaging host to $browser" \ _run "[browserpass] Installing native messaging host to $browser" \
make PREFIX=$_prefix hosts-$browser-user \ make PREFIX=$_prefix hosts-$browser-user \
@ -27,8 +30,19 @@ case $_PLATFORM in
;; ;;
arch) arch)
_recipe _arch _recipe _arch
which chromium 2>&1 >/dev/null && _pacman browserpass-chromium if command -v chromium 2>&1 >/dev/null \
which firefox 2>&1 >/dev/null && _pacman browserpass-firefox || command -v google-chrome 2>&1 >/dev/null \
|| command -v google-chrome-stable 2>&1 >/dev/null; then
_pacman browserpass-chromium
fi
if command -v firefox 2>&1 >/dev/null \
|| command -v firedragon 2>&1 >/dev/null; then
_pacman browserpass-firefox
fi
if command -v google-chrome 2>&1 >/dev/null \
|| command -v google-chrome-stable 2>&1 >/dev/null; then
_browserpass chrome
fi
;; ;;
*) *)
if ! test -d ~/.local/lib/browserpass; then if ! test -d ~/.local/lib/browserpass; then
@ -41,6 +55,6 @@ case $_PLATFORM in
popd >/dev/null popd >/dev/null
rm -rf "$tempdir" rm -rf "$tempdir"
fi fi
which google-chrome 2>&1 >/dev/null && _browserpass chrome command -v google-chrome 2>&1 >/dev/null && _browserpass chrome
which firefox 2>&1 >/dev/null && _browserpass command -v firefox 2>&1 >/dev/null && _browserpass
esac esac