add 新增支援 Ubuntu 24.04

This commit is contained in:
2025-05-04 00:16:15 +08:00
parent a9c82b6db7
commit bf4205ddef
3 changed files with 22 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
#!/bin/bash
{{/* ==== Debian ======================================================== */ -}}
{{ if eq .chezmoi.osRelease.id "debian" -}}
{{ if or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "ubuntu") -}}
{{/* ---- 整理待安裝清單 -------------------------------------------------- */ -}}
{{- $aptInstall := .packages.linux.debian.apt -}}
@@ -12,6 +12,11 @@
{{ else if and (eq .chezmoi.osRelease.id "debian") (hasKey .chezmoi.osRelease "versionID") (le .chezmoi.osRelease.versionID "12") }}
{{- $aptInstall = concat .packages.linux.debian.apt .packages.linux.debian.apt_12 -}}
{{- end -}}
{{ if eq .chezmoi.osRelease.id "ubuntu" -}}
{{- $aptInstall = .packages.linux.ubuntu.apt -}}
{{ end -}}
apt_packages=( {{ $aptInstall | quoteList | join " " }} )
to_install_apt=()