Skip to content

Commit

Permalink
Small tweaks to scripts that update gems
Browse files Browse the repository at this point in the history
The `update_gem_in_all_appraisals` script can do two things:

* Update the given gem located in the Gemfile
* Update the given gem located in Appraisals

Currently, if the first step fails, then the second step does not run.
With this commit, both will run regardless of their status.
  • Loading branch information
mcmire committed Dec 31, 2015
1 parent 97a627c commit 2c26cc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/update_gem_in_all_appraisals
Expand Up @@ -5,7 +5,7 @@ gem="$1"

update-gem-for-version() {
local version="$1"
(export RBENV_VERSION=$version; bundle update "$gem" && bundle exec appraisal update "$gem")
(export RBENV_VERSION=$version; bundle update "$gem"; bundle exec appraisal update "$gem")
}

for version in $SUPPORTED_VERSIONS; do
Expand Down
2 changes: 1 addition & 1 deletion script/update_gems_in_all_appraisals
Expand Up @@ -4,7 +4,7 @@ SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS)

update-gems-for-version() {
local version="$1"
(export RBENV_VERSION=$version; bundle update "${@:2}" && bundle exec appraisal update "${@:2}")
(export RBENV_VERSION=$version; bundle update "${@:2}"; bundle exec appraisal update "${@:2}")
}

for version in $SUPPORTED_VERSIONS; do
Expand Down

0 comments on commit 2c26cc3

Please sign in to comment.