mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-23 03:00:08 +00:00
[provisioning] Update browserpass recipe
This commit is contained in:
parent
d84793d5b0
commit
154d1787c8
1 changed files with 18 additions and 4 deletions
|
@ -9,6 +9,9 @@ function _browserpass {
|
|||
darwin)
|
||||
_prefix=/usr/local/opt/browserpass
|
||||
;;
|
||||
arch)
|
||||
_prefix=/usr
|
||||
;;
|
||||
esac
|
||||
_run "[browserpass] Installing native messaging host to $browser" \
|
||||
make PREFIX=$_prefix hosts-$browser-user \
|
||||
|
@ -27,8 +30,19 @@ case $_PLATFORM in
|
|||
;;
|
||||
arch)
|
||||
_recipe _arch
|
||||
which chromium 2>&1 >/dev/null && _pacman browserpass-chromium
|
||||
which firefox 2>&1 >/dev/null && _pacman browserpass-firefox
|
||||
if command -v chromium 2>&1 >/dev/null \
|
||||
|| 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
|
||||
|
@ -41,6 +55,6 @@ case $_PLATFORM in
|
|||
popd >/dev/null
|
||||
rm -rf "$tempdir"
|
||||
fi
|
||||
which google-chrome 2>&1 >/dev/null && _browserpass chrome
|
||||
which firefox 2>&1 >/dev/null && _browserpass
|
||||
command -v google-chrome 2>&1 >/dev/null && _browserpass chrome
|
||||
command -v firefox 2>&1 >/dev/null && _browserpass
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue