This commit is contained in:
Marc Beninca 2024-11-25 18:48:22 +01:00
parent 0e8cab41f6
commit 86be462cbe
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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
}