diff options
Diffstat (limited to 'script')
-rwxr-xr-x | script/setup | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/script/setup b/script/setup index 7823f40..9ddd50b 100755 --- a/script/setup +++ b/script/setup @@ -1,4 +1,13 @@ -#!/bin/bash +#!/usr/bin/env bash +ruby_status=$(rbenv version |& awk '{ printf $4 " " $5 " " $6 }'|sed -r 's/[ ]+$//') +echo \"${ruby_status}\" +if [[ "${ruby_status}" == "is not installed" ]] +then + rbenv install $(cat .ruby-version) + gem install bundler + bundle config build.sqlite3 --with-sqlite3-dir=/usr/local +fi + bundle install --without=production if [ $? ]; then |