Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'development' of github.com:sm/sm into development

  • Loading branch information...
commit 68ef802471a8df9608af2ceaf036e3252101a735 2 parents c8f3786 + 3383f56
Michal Papis mpapis authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 core/sm/shell/modules/functions
7 core/sm/shell/modules/functions
View
@@ -109,7 +109,7 @@ detect_module()
local extensions_path=$1 _module_path
shift || fail "Extensions path must be given as the first parameter."
- rebuild_path "modules" $extensions_path $@
+ rebuild_path "shell" $extensions_path $@
_module_path=${rebuilded_path}
debug search_module_path ":${_module_path}:"
@@ -238,7 +238,10 @@ module()
local _module="${1:-}" _file _module_dependency _module_path _hook _function
shift || fail "No module name was given as the first parameter."
- ! module_is_loaded "${_module}" || return 0 # Return if module is loaded.
+ if module_is_loaded "${_module}"
+ then
+ return 0 # Return if module is loaded.
+ fi
# Search for module.
if in_search_paths detect_module "${_module}"
Please sign in to comment.
Something went wrong with that request. Please try again.