Mercurial > dotfiles
annotate .chezmoiscripts/run_onchange_after_19-install-bitwarden.sh.tmpl @ 842:e9fc2263c225
feat: install bitwarden desktop app
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 10 Feb 2024 11:55:23 +0100 |
parents | 8afe3c7a5a35 |
children | 8430f87e87c8 |
rev | line source |
---|---|
841 | 1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}} |
2 #!/usr/bin/env bash | |
3 | |
4 set -xe | |
5 | |
842
e9fc2263c225
feat: install bitwarden desktop app
zegervdv <zegervdv@me.com>
parents:
841
diff
changeset
|
6 DOWNLOADFILE=/tmp/bitwarden.deb |
841 | 7 curl -fsSL "https://github.com/bitwarden/clients/releases/download/cli-v2024.2.0/bw-linux-2024.2.0.zip" | zcat | install -m 755 /dev/stdin $HOME/bin/bw |
842
e9fc2263c225
feat: install bitwarden desktop app
zegervdv <zegervdv@me.com>
parents:
841
diff
changeset
|
8 curl -fsSL "https://github.com/bitwarden/clients/releases/download/desktop-v2024.2.0/Bitwarden-2024.2.0-amd64.deb" > $DOWNLOADFILE |
e9fc2263c225
feat: install bitwarden desktop app
zegervdv <zegervdv@me.com>
parents:
841
diff
changeset
|
9 sudo dpkg --install --skip-same-version $DOWNLOADFILE |
e9fc2263c225
feat: install bitwarden desktop app
zegervdv <zegervdv@me.com>
parents:
841
diff
changeset
|
10 rm -rf $DOWNLOADFILE |
841 | 11 |
12 | |
13 {{ end }} |