diff options
author | P. J. McDermott <pjm@nac.net> | 2013-08-18 10:27:28 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-08-18 10:27:28 (EDT) |
commit | 76fd977633b076daf79960a1346ab7bfdd013ef0 (patch) | |
tree | dbdd020ca64df62adabf46fafec35275823df5b1 /lib | |
parent | d8a57bc39650d97725637bd42f04bd9e16d284f1 (diff) |
lib/load.sh: Remove _ob_local.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/load.sh | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/load.sh b/lib/load.sh index ac38dbc..685f414 100644 --- a/lib/load.sh +++ b/lib/load.sh @@ -26,23 +26,20 @@ _OB_LOAD_SM='true' ob_use() { - _ob_local _obu_module + local module if [ ${#} -eq 1 ]; then - _obu_module="${1}" + module="${1}" else - _ob_return 125 - return ${?} + return 125 fi - _obu_module='@@PKGLIBDIR@@'"/${_obu_module}.sm" - if [ -r "${_obu_module}" ]; then - . "${_obu_module}" + module='@@PKGLIBDIR@@'"/${module}.sm" + if [ -r "${module}" ]; then + . "${module}" else - _ob_return 1 - return ${?} + return 1 fi - _ob_return 0 - return ${?} + return 0 } |