containerctl: list_configs() should not use -type d
Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
7471bfbf70
commit
7a863bb7ea
1 changed files with 2 additions and 7 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue