Permalink
Browse files

Only add existing files to the required list.

  • Loading branch information...
1 parent 7245170 commit 1976910749cf9887e8796eeb28f23e649f4b06f9 intalio committed Aug 22, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 core/internal/shell/extensions/execution/functions
@@ -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 1976910

Please sign in to comment.