Skip to content

Commit 8604ce5

Browse files
committed
Skip versions of bundler that may not be installed
1 parent ecd9947 commit 8604ce5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/travis-before-install

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ gem install bundler -v "$DESIRED_BUNDLER_VERSION"
1111

1212
BUNDLER_VERSIONS=$(gem list bundler | grep ^bundler | cut -d'(' -f2 | cut -d')' -f1 | tr "," " " | grep -v "default")
1313
for v in $BUNDLER_VERSIONS; do
14-
if [ "$v" != "$DESIRED_BUNDLER_VERSION" ]; then gem uninstall bundler --force -v "$v"; fi
14+
if [ "$v" != "$DESIRED_BUNDLER_VERSION" ]; then
15+
gem uninstall bundler --force -v "$v" || true
16+
fi
1517
done

0 commit comments

Comments
 (0)