−file
This commit is contained in:
parent
0e8cab41f6
commit
86be462cbe
1 changed files with 2 additions and 12 deletions
14
sh/main.sh
14
sh/main.sh
|
@ -90,16 +90,6 @@ main_source_directory() {
|
|||
_sh_ifs_pop
|
||||
}
|
||||
|
||||
main_source_file() {
|
||||
local path="${1}"
|
||||
if [ -f "${path}" ]; then
|
||||
main_source_directory "$(dirname "${path}")"
|
||||
else
|
||||
_sh_main_log "Not a file: ${path}"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# public
|
||||
|
||||
sh_help() {
|
||||
|
@ -110,10 +100,10 @@ sh_help() {
|
|||
}
|
||||
|
||||
sh_main() {
|
||||
main_source_file "${ENV}"
|
||||
main_source_directory "${SH_ROOT}"
|
||||
main_source_directory "${SH_USER}"
|
||||
sh_log
|
||||
sh_shellcheck "$(dirname "${ENV}")"
|
||||
sh_shellcheck "${SH_ROOT}"
|
||||
sh_log
|
||||
sh_help
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue