Quieter version check, always forget lock

Thu, 17 Mar 2016 02:05:51 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 17 Mar 2016 02:05:51 -0400
changeset 275
c636b6086bb2
parent 274
996791a2a2cf
child 276
b9c8bfdfe163

Quieter version check, always forget lock

bin/homedir-gems file | annotate | diff | comparison | revisions
bin/homedir-setup file | annotate | diff | comparison | revisions
--- a/bin/homedir-gems
+++ b/bin/homedir-gems
@@ -1,6 +1,9 @@
 #!/bin/sh
 set -eu
 
-bundle --version || gem install bundler
+if ! bundle --version >/dev/null 2>&1; then
+  gem install bundler
+fi
 
+rm -f ~/.Gemfile.lock
 exec bundle install --system --jobs=2 --gemfile=~/.Gemfile
--- a/bin/homedir-setup
+++ b/bin/homedir-setup
@@ -1,5 +1,4 @@
 #!/bin/sh
-
 set -eu
 
 if ! git --version >/dev/null; then

mercurial