]> cat aescling's git repositories - mastodon.git/commitdiff
Fix issue with line return in file (#1947)
authorNaouak <tardiel@gmail.com>
Fri, 21 Apr 2017 18:07:47 +0000 (20:07 +0200)
committerEugen <eugen@zeonfederated.com>
Fri, 21 Apr 2017 18:07:47 +0000 (20:07 +0200)
Fix #1940

Vagrantfile

index 9047037bc9359e4bdf852b5706d65abb97939208..c85db9205ec1cecacdb31c0b6405ff743485c5e8 100644 (file)
@@ -48,9 +48,10 @@ eval "$(rbenv init -)"
 
 cd /vagrant
 
-echo "Compiling Ruby $(cat .ruby-version): warning, this takes a while!!!"
-rbenv install $(cat .ruby-version)
-rbenv global $(cat .ruby-version)
+read RUBY_VERSION < .ruby-version
+echo "Compiling Ruby $RUBY_VERSION: warning, this takes a while!!!"
+rbenv install $RUBY_VERSION
+rbenv global $RUBY_VERSION
 
 # Configure database
 sudo -u postgres createuser -U postgres vagrant -s