From d5a071eeb0830ddbec665cecb59e99c105cd23b9 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 6 Jun 2025 14:44:10 +0200 Subject: [PATCH] Update ha_automatic_packages.sh --- .templates/ha_automatic_packages.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.templates/ha_automatic_packages.sh b/.templates/ha_automatic_packages.sh index bc0dc6778..872077ec7 100755 --- a/.templates/ha_automatic_packages.sh +++ b/.templates/ha_automatic_packages.sh @@ -93,6 +93,13 @@ declare -A PACMAN=( ######################## dirs=(/etc/cont-init.d /etc/services.d) declare -a wants=() + +# 1. Add command-line arguments (if any) +for arg in "$@"; do + wants+=("$arg") +done + +# 2. Add detected commands from scanning the folders for d in "${dirs[@]}"; do [[ -d $d ]] || continue mapfile -d '' all_files < <(find "$d" -type f -print0)