Skip to content
Browse files

Merge pull request #49 from hmalphettes/tweaks_for_ubuntu_precise

Tweaks for ubuntu precise
  • Loading branch information...
2 parents 89ab1ab + 0d308ec commit 2b8929cc2f6117b2dbdb73d878aa64cf73e1ca09 @mpapis mpapis committed Aug 23, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 core/internal/shell/extensions/execution/functions
View
7 core/internal/shell/extensions/execution/functions
@@ -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" \

0 comments on commit 2b8929c

Please sign in to comment.
Something went wrong with that request. Please try again.