mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02: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)
|
dirs=(/etc/cont-init.d /etc/services.d)
|
||||||
declare -a wants=()
|
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
|
for d in "${dirs[@]}"; do
|
||||||
[[ -d $d ]] || continue
|
[[ -d $d ]] || continue
|
||||||
mapfile -d '' all_files < <(find "$d" -type f -print0)
|
mapfile -d '' all_files < <(find "$d" -type f -print0)
|
||||||
|
|||||||
Reference in New Issue
Block a user