erroot
This commit is contained in:
parent
86be462cbe
commit
586373ca3f
1 changed files with 5 additions and 4 deletions
|
@ -64,10 +64,8 @@ _sh_main_commands() {
|
|||
|
||||
main_source_directory() {
|
||||
local path="${1}"
|
||||
if [ ! -d "${path}" ]; then
|
||||
_sh_main_log "Not a directory: ${path}"
|
||||
[ -d "${path}" ] ||
|
||||
return 1
|
||||
fi
|
||||
local cmd count module modules
|
||||
modules="$(sh_source_find "${path}" "${SH_MAIN_NAME}")"
|
||||
_sh_ifs_new
|
||||
|
@ -100,7 +98,10 @@ sh_help() {
|
|||
}
|
||||
|
||||
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}"
|
||||
sh_log
|
||||
sh_shellcheck "${SH_ROOT}"
|
||||
|
|
Loading…
Reference in a new issue