summaryrefslogtreecommitdiffstats
path: root/lib/load.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-03-06 11:45:14 (EST)
committer P. J. McDermott <pjm@nac.net>2014-03-06 11:45:14 (EST)
commit6c229db00449a0cfc4258c44e36247d0f6826173 (patch)
tree7afbf36146e438f2e84d38c34e597027956f35ff /lib/load.sh
parent731e0cf0e59da3ee0b6bda99f70e8be4d54d4d08 (diff)
lib/*.sh: Consolidate arg variable assignments.
Diffstat (limited to 'lib/load.sh')
-rw-r--r--lib/load.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/load.sh b/lib/load.sh
index d376084..7dbb3b6 100644
--- a/lib/load.sh
+++ b/lib/load.sh
@@ -26,13 +26,7 @@ _OH_LOAD_SM=1
oh_use()
{
- local module=
-
- if [ ${#} -eq 1 ]; then
- module="${1}"
- else
- return 125
- fi
+ local module="${1}"
module='@pkgdatadir@'"/${module}.sm"
if [ -r "${module}" ]; then