summaryrefslogtreecommitdiffstats
path: root/lib/load.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-01-20 15:00:44 (EST)
committer P. J. McDermott <pjm@nac.net>2014-01-20 15:00:44 (EST)
commiteddee51fc2d07658ed6db5ba150a70c67dcd49c3 (patch)
treea06168871d050f9fa93af4b7e9e7b2a29222c31d /lib/load.sh
parentbeeca321cae5710ce6d88cbc2be19f821edc1271 (diff)
lib/load.sh: Remove _oh_local.
Diffstat (limited to 'lib/load.sh')
-rw-r--r--lib/load.sh19
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/load.sh b/lib/load.sh
index 4c3f822..6dcec88 100644
--- a/lib/load.sh
+++ b/lib/load.sh
@@ -29,23 +29,20 @@ _OH_LOAD_SM='true'
oh_use()
{
- _oh_local _ohu_module
+ local module=
if [ ${#} -eq 1 ]; then
- _ohu_module="${1}"
+ module="${1}"
else
- _oh_return 125
- return ${?}
+ return 125
fi
- _ohu_module='@@PKGLIBDIR@@'"/${_ohu_module}.sm"
- if [ -r "${_ohu_module}" ]; then
- . "${_ohu_module}"
+ module='@@PKGLIBDIR@@'"/${module}.sm"
+ if [ -r "${module}" ]; then
+ . "${module}"
else
- _oh_return 1
- return ${?}
+ return 1
fi
- _oh_return 0
- return ${?}
+ return 0
}