Skip to content

Commit

Permalink
Only add existing files to the required list.
Browse files Browse the repository at this point in the history
  • Loading branch information
intalio committed Aug 22, 2012
1 parent 7245170 commit 1976910
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/internal/shell/extensions/execution/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 1976910

Please sign in to comment.