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()