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

23 lines
686 B
Bash

#!/usr/bin/env bash
{{- if false }}
set -eufo pipefail
{{- includeTemplate "universal/profile" }}
{{- includeTemplate "universal/logg" }}
{{- $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
logg 'Installing Aqua'
curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v1.0.0/aqua-installer | bash
fi
logg 'Updating Aqua'
aqua update-aqua
logg 'Installing Aqua dependencies (if any are defined)'
aqua install -a
{{- end }}