1
0
chezmoi/home/.chezmoiscripts/run_once_after_10-install-packages.sh.tmpl

38 lines
849 B
Cheetah
Raw Normal View History

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