Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:sm/sm

  • Loading branch information...
commit 3c9f280250c5ba3eae2d392884cb16429d3c5da3 2 parents 4271855 + 2b8929c
Michal Papis mpapis authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 core/internal/shell/extensions/execution/functions
9 core/internal/shell/extensions/execution/functions
View
@@ -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
@@ -43,7 +43,7 @@ __sm.extension.actions.type()
case "${shebang}" in
*ruby|*rbx|*jruby|*macruby)
- binary="${shebang##*(#|!)}"
+ binary="${shebang##*(\#|!)}"
binary="${binary##* }"
action_type="ruby"
;;
@@ -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" \
Please sign in to comment.
Something went wrong with that request. Please try again.