From 7a863bb7ead380fec0889b2bfb4ef56a199b2ae4 Mon Sep 17 00:00:00 2001 From: Enno Tensing Date: Mon, 4 Aug 2025 20:36:29 +0200 Subject: [PATCH] containerctl: list_configs() should not use -type d Signed-off-by: Enno Tensing --- containerctl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/containerctl b/containerctl index 8aed2f2..fd936c8 100755 --- a/containerctl +++ b/containerctl @@ -16,19 +16,14 @@ log_error() printf '[%b] (EE) %b\n' "${TODAY}" "${@}" | tee -a "${LOG}" } -list_dir() -{ - find "${1}" -mindepth 1 -type d -} - list_containers() { - list_dir "${CONTAINERDIR}" + find "${CONTAINERDIR}" -mindepth 1 -type d } list_configs() { - list_dir "${CONFIGDIR}" + find "${CONFIGDIR}" -mindepth 1 -type f } exec_script()