Tweaks for ubuntu precise #49

Merged
merged 2 commits into from Aug 24, 2012
@@ -3,7 +3,7 @@
__sm.extension.actions.type()
{
typeset -g action_type
- typeset _path _path_type extension shebang
+ typeset _path _path_type extension shebang binary
_path="${action_path:-}"
case "${action}" in
@@ -191,7 +191,10 @@ __sm.extension.run()
requires=()
for script in functions initialize
do
- requires+=( "-r${__sm_modules_path}/ruby/core/${script}.rb" )
+ if [[ -f "${__sm_modules_path}/ruby/core/${script}.rb" ]]
+ then
+ requires+=( "-r${__sm_modules_path}/ruby/core/${script}.rb" )
+ fi
done
exec "${binary:-ruby}" -I"${__sm_modules_path}/ruby" -I"${extension_modules_path}/ruby" \