Skip to content

Commit

Permalink
Pass error exit codes back out.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Dec 21, 2011
1 parent 03098b1 commit 0a06f28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/internal/shell/extensions/execution/functions
Expand Up @@ -175,14 +175,14 @@ __sm.extension.run()
__sm.extension.modules.include ${=_namespaces//\// }
action=${action%%\(*}
__sm.extension.action.prerequisites
__sm.actions.call ${action} "${extension_args[@]}"
__sm.actions.call ${action} "${extension_args[@]}" || return $?
;;

(shell)
_namespaces=${_path##${extension_bin_path}}
__sm.extension.modules.include ${=_namespaces//\// }
__sm.extension.action.prerequisites
__sm.actions.source "${_path}/${action}" "${extension_args[@]}"
__sm.actions.source "${_path}/${action}" "${extension_args[@]}" || return $?
;;

(ruby)
Expand Down
6 changes: 3 additions & 3 deletions core/sm/shell/core/initialize
Expand Up @@ -127,7 +127,7 @@ then
then # Sourcing needed for loading from bash 3, for now, set sm_script='/'
true # Skip any actions, stop with the framework simply loaded.
else
__sm.actions.source $sm_script "${extension_args[@]}" # load script
__sm.actions.source $sm_script "${extension_args[@]}" || exit $?
fi
elif [[ -n "${call_action}" ]]
then
Expand All @@ -141,12 +141,12 @@ elif set | grep '^extension_args=(' >/dev/null
then
case "${extension_args[1]}" in
(*,*)
${sm_path}/bin/smp ${extension_args[@]}
${sm_path}/bin/smp ${extension_args[@]} || exit $?
;;
(*)
__sm.includes sm/modules api/extensions/detection api/extensions/execution
__sm.extension.action
__sm.extension.actions.type
__sm.extension.run
__sm.extension.run || exit $?
esac
fi

0 comments on commit 0a06f28

Please sign in to comment.