diff .chezmoiscripts/run_onchange_after_19-install-bitwarden.sh.tmpl @ 1093:9732db099471 draft

feat: enable dotfiles on aarch64/Fedora
author "Zeger Van de Vannet <zeger@vandevan.net>"
date Sun, 18 May 2025 16:28:58 +0200
parents a1fab5298ef6
children
line wrap: on
line diff
--- a/.chezmoiscripts/run_onchange_after_19-install-bitwarden.sh.tmpl	Thu May 08 21:56:41 2025 +0200
+++ b/.chezmoiscripts/run_onchange_after_19-install-bitwarden.sh.tmpl	Sun May 18 16:28:58 2025 +0200
@@ -1,16 +1,18 @@
-{{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}}
+{{ if (eq .chezmoi.os "linux") -}}
 #!/usr/bin/env bash
 
 set -xe
 
-sudo apt install -y libnss3 libsecret-1-0 libxss1
-
-DOWNLOADFILE=/tmp/bitwarden.deb
 VERSION="2025.3.0"
 curl -fsSL "https://github.com/bitwarden/clients/releases/download/cli-v${VERSION}/bw-linux-${VERSION}.zip" | zcat | install -m 755 /dev/stdin $HOME/bin/bw
+
+{{ if (eq .chezmoi.osRelease.name "Ubuntu" ) -}}
+sudo apt install -y libnss3 libsecret-1-0 libxss1
+DOWNLOADFILE=/tmp/bitwarden.deb
 curl -fsSL "https://github.com/bitwarden/clients/releases/download/desktop-v${VERSION}/Bitwarden-${VERSION}-amd64.deb" > $DOWNLOADFILE
 sudo dpkg --install --skip-same-version $DOWNLOADFILE
 rm -rf $DOWNLOADFILE
+{{ end }}
 
 $HOME/bin/mise x [email protected] -- cargo install --version 1.13.2 rbw