install.fairie/dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_10_install-aqua-packages.sh.tmpl

21 lines
603 B
Cheetah

{{- if false }}
#!/usr/bin/env bash
set -eufo pipefail
{{- includeTemplate "universal/logg" }}
source "$HOME/.config/shell/exports"
{{- $files := list -}}
{{- range $path := glob (list .chezmoi.sourceDir "private_dot_config/aqua/**/*.yaml.tmpl" | join "/") }}
{{- $files = concat $files (list (include $path)) -}}
{{- end }}
# aqua.yaml.tmpl hash: {{ $files | join "" | sha256sum }}
if ! command -v aqua >/dev/null 2>&1; then
echo "Installing aqua"
curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v1.0.0/aqua-installer | bash
fi
aqua update-aqua
aqua install -a
{{- end -}}