diff --git a/ruby/private/bundle_install/bundle_install.cmd.tpl b/ruby/private/bundle_install/bundle_install.cmd.tpl index 789a0531..0960fe53 100644 --- a/ruby/private/bundle_install/bundle_install.cmd.tpl +++ b/ruby/private/bundle_install/bundle_install.cmd.tpl @@ -3,6 +3,7 @@ {env} {ruby_path} {bundler_exe} install --standalone --local {extra_args} +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% {binstubs_cmd} :: vim: ft=dosbatch diff --git a/ruby/private/bundle_install/bundle_install.sh.tpl b/ruby/private/bundle_install/bundle_install.sh.tpl index 78e060bd..19ca6273 100644 --- a/ruby/private/bundle_install/bundle_install.sh.tpl +++ b/ruby/private/bundle_install/bundle_install.sh.tpl @@ -3,6 +3,11 @@ {env} {ruby_path} {bundler_exe} install --standalone --local {extra_args} +status=$? +if [ "$status" -ne 0 ]; then + echo "bundle install failed with exit code $status" >&2 + exit "$status" +fi {binstubs_cmd} # vim: ft=bash