1 # Base environment script
3 if [ -z "${__env_sh_loaded}" ]
5 if [ -z "${_root}" -o ! -d "${_root}" ]
7 printf "\033[1;31mSet _root to the directory containing lib/ before sourcing this file!\033[0m\n"
17 __env_libdir="$(realpath "${_root}/lib")"
21 if [ -f "${__env_libdir}/${1}.sh" ]
23 . "${__env_libdir}/${1}.sh"
25 printf "\033[1;31mFailed to load '${1}'\033[0m\n"