2024-05-07 21:16:41 +00:00
|
|
|
#!{{ lookPath "bash" }}
|
2024-01-20 21:28:01 +00:00
|
|
|
|
2024-03-01 10:26:26 +00:00
|
|
|
# Logging function
|
|
|
|
log() {
|
2024-03-01 10:47:05 +00:00
|
|
|
printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)\n" "$1"
|
2024-03-01 10:26:26 +00:00
|
|
|
}
|
2024-02-28 20:38:45 +00:00
|
|
|
|
2024-03-01 10:47:05 +00:00
|
|
|
inf() {
|
2024-03-03 14:12:40 +00:00
|
|
|
printf "$(tput setaf 2)╚═══ᐳ $(tput sgr 0 1)$(tput setaf 2)%s$(tput sgr0)\n" "$1"
|
2024-03-01 10:47:05 +00:00
|
|
|
}
|
2024-02-28 20:38:45 +00:00
|
|
|
|
2024-08-02 14:21:24 +00:00
|
|
|
err() {
|
|
|
|
printf "$(tput setaf 9)$(tput bold)>>>>> %s ! <<<<<$(tput sgr0)\n" "$1"
|
|
|
|
}
|
2024-01-20 21:28:01 +00:00
|
|
|
|
2024-03-03 14:49:17 +00:00
|
|
|
|
2024-05-07 21:13:20 +00:00
|
|
|
{{ if (eq .chezmoi.os "linux") -}}
|
|
|
|
{{ if (eq .chezmoi.osRelease.id "manjaro" "arch") -}}
|
2024-02-25 20:17:45 +00:00
|
|
|
|
2024-05-07 21:13:20 +00:00
|
|
|
log "Begin Arch/Manjaro Linux packages installation"
|
2024-01-20 21:28:01 +00:00
|
|
|
|
2024-08-02 23:56:36 +00:00
|
|
|
. {{ .chezmoi.sourceDir }}/scripts/archlinux.sh
|
2024-05-07 21:13:20 +00:00
|
|
|
|
|
|
|
log "Finish Arch/Manjaro Linux packages installation"
|
|
|
|
|
|
|
|
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
|
|
|
|
|
|
|
|
log "Begin Debian/Ubuntu Linux packages installation"
|
|
|
|
|
2024-08-02 14:21:24 +00:00
|
|
|
err "Don't have any install script for Debian/Ubuntu"
|
2024-05-07 20:08:03 +00:00
|
|
|
|
2024-05-07 21:13:20 +00:00
|
|
|
log "Finish Debian/Ubuntu Linux packages installation"
|
2024-05-07 19:59:08 +00:00
|
|
|
|
2024-05-07 21:13:20 +00:00
|
|
|
{{- end }}
|
2024-01-20 21:20:36 +00:00
|
|
|
{{- end }}
|
2024-01-20 21:28:01 +00:00
|
|
|
|
2024-05-07 20:23:18 +00:00
|
|
|
|