Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleaning core_module(s)

  • Loading branch information...
commit 6e6117058d3706450a3fd745fcbeb2f83114f2ac 1 parent 60d77c2
Michal Papis mpapis authored
5 extensions/builtin/core/modules/shell/core/initialize
View
@@ -63,10 +63,7 @@ source "${modules_path}/shell/core/dsl"
source "${modules_path}/shell/modules/dsl"
source "${modules_path}/shell/modules/initialize"
-for module in variables trace array logging time environment filesystem system users extensions
-do
- core_module "$module"
-done
+core_modules variables trace array time logging environment filesystem system users extensions
if os_is_solaris
then # custom compilations + g*
21 extensions/builtin/core/modules/shell/modules/dsl
View
@@ -126,16 +126,19 @@ module_or_error()
fi
}
-# load a core module or fail
-core_module()
+# load core modules or fail
+core_modules()
{
- module=$1
- module_name="core/$module"
- module_path="${modules_path}/shell/$module"
- if ! module "$module_name" skip_path_detection
- then
- fail "core module '${module_name}' is missing!!!"
- fi
+ local module
+ for module in $@
+ do
+ module_name="core/$module"
+ module_path="${modules_path}/shell/$module"
+ if ! module "$module_name" skip_path_detection
+ then
+ fail "core module '${module_name}' is missing!!!"
+ fi
+ done
}
#
Please sign in to comment.
Something went wrong with that request. Please try again.