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)
|
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
|
||||||
|
|
Loading…
Reference in a new issue