mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update ha_automatic_packages.sh
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user