add 新增支援 Ubuntu 24.04
This commit is contained in:
@@ -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=()
|
||||
|
||||
Reference in New Issue
Block a user