main/if
This commit is contained in:
parent
62b8f60841
commit
678cf741c9
1 changed files with 23 additions and 24 deletions
|
@ -63,7 +63,10 @@ _sh_main_log() {
|
|||
|
||||
main_source_directory() {
|
||||
local path="${1}"
|
||||
if [ -d "${path}" ]; then
|
||||
if [ ! -d "${path}" ]; then
|
||||
_sh_main_log "Not a directory: ${path}"
|
||||
return 1
|
||||
fi
|
||||
local cmd count ifs module modules
|
||||
modules="$(sh_source_find "${path}" "${SH_MAIN_NAME}")"
|
||||
ifs="${IFS}"
|
||||
|
@ -86,10 +89,6 @@ main_source_directory() {
|
|||
fi
|
||||
done
|
||||
IFS="${ifs}"
|
||||
else
|
||||
_sh_main_log "Not a directory: ${path}"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
main_source_file() {
|
||||
|
|
Loading…
Reference in a new issue