1
0
Fork 0

containerctl: list_configs() should not use -type d

Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
Enno Tensing 2025-08-04 20:36:29 +02:00
parent 7471bfbf70
commit 7a863bb7ea
Signed by: tenno
GPG key ID: 95265603BD36E66C

View file

@ -16,19 +16,14 @@ log_error()
printf '[%b] (EE) %b\n' "${TODAY}" "${@}" | tee -a "${LOG}" printf '[%b] (EE) %b\n' "${TODAY}" "${@}" | tee -a "${LOG}"
} }
list_dir()
{
find "${1}" -mindepth 1 -type d
}
list_containers() list_containers()
{ {
list_dir "${CONTAINERDIR}" find "${CONTAINERDIR}" -mindepth 1 -type d
} }
list_configs() list_configs()
{ {
list_dir "${CONFIGDIR}" find "${CONFIGDIR}" -mindepth 1 -type f
} }
exec_script() exec_script()