This commit is contained in:
Marc Beninca 2024-11-25 18:51:24 +01:00
parent 86be462cbe
commit 586373ca3f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -64,10 +64,8 @@ _sh_main_commands() {
main_source_directory() { main_source_directory() {
local path="${1}" local path="${1}"
if [ ! -d "${path}" ]; then [ -d "${path}" ] ||
_sh_main_log "Not a directory: ${path}"
return 1 return 1
fi
local cmd count module modules local cmd count module modules
modules="$(sh_source_find "${path}" "${SH_MAIN_NAME}")" modules="$(sh_source_find "${path}" "${SH_MAIN_NAME}")"
_sh_ifs_new _sh_ifs_new
@ -100,7 +98,10 @@ sh_help() {
} }
sh_main() { sh_main() {
main_source_directory "${SH_ROOT}" if ! main_source_directory "${SH_ROOT}"; then
_sh_main_log "Not a directory: ${SH_ROOT}"
return 1
fi
main_source_directory "${SH_USER}" main_source_directory "${SH_USER}"
sh_log sh_log
sh_shellcheck "${SH_ROOT}" sh_shellcheck "${SH_ROOT}"