#!/usr/bin/env bash: "${LIBBASH_DIR:?LIBBASH_DIR must be set. Please source libbash/init before other libraries.}"libs=()# Get an array of all librariesfor f in"${LIBBASH_DIR}"/*;do[[ -f "${f}"]]&&\[["${f}" != *"init"]]&&\[["${f}" != *"all"]]&&\[["${f}" != *"helpers"]]&&\[["${f}" != *"logging"]]&&\[[$(\head "${f}" -n1)=="#!/usr/bin/env bash"]]&&\libs+=("${f}")done# Load all librariesfor lib in"${libs[@]}";doif[[ -r "${lib}"]]&&[[ -f "${lib}"]];then# shellcheck source=/dev/nullsource"${lib}"fidone