Фикс команд iptv, связанных с контейнерами

This commit is contained in:
2025-06-05 00:04:54 +08:00
parent f1bd94b35b
commit 2f3bea76f4

7
iptv
View File

@@ -416,8 +416,8 @@ find_service_compose() {
for known in $(docker.compose config --services); do for known in $(docker.compose config --services); do
if [ "$known" = "$svc" ]; then if [ "$known" = "$svc" ]; then
debug "Сервис '$svc' найден в композе" debug "Сервис '$known' найден в композе"
echo "iptv-$known" echo "$known"
exit exit
fi fi
done done
@@ -432,9 +432,8 @@ find_services_compose() {
[ "$*" ] && for svc in "$@"; do [ "$*" ] && for svc in "$@"; do
grep_match "$svc" "^--?.*" && continue grep_match "$svc" "^--?.*" && continue
var_dump svc
svc="$(find_service_compose "$svc")" svc="$(find_service_compose "$svc")"
services="$services iptv-$svc" services="$services $svc"
done done
trim "$services" trim "$services"