Mercurial > dotfiles
comparison .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 |
comparison
equal
deleted
inserted
replaced
841:8afe3c7a5a35 | 842:e9fc2263c225 |
---|---|
1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}} | 1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}} |
2 #!/usr/bin/env bash | 2 #!/usr/bin/env bash |
3 | 3 |
4 set -xe | 4 set -xe |
5 | 5 |
6 DOWNLOADFILE=/tmp/bitwarden.deb | |
6 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 | 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 |
8 curl -fsSL "https://github.com/bitwarden/clients/releases/download/desktop-v2024.2.0/Bitwarden-2024.2.0-amd64.deb" > $DOWNLOADFILE | |
9 sudo dpkg --install --skip-same-version $DOWNLOADFILE | |
10 rm -rf $DOWNLOADFILE | |
7 | 11 |
8 | 12 |
9 {{ end }} | 13 {{ end }} |