Sha256: ef1282422a3bfd355fe531f7c0b6d799cda3b1ae269865cc4c10cf7563323ab6
Contents?: true
Size: 942 Bytes
Versions: 9
Compression:
Stored size: 942 Bytes
Contents
#!/bin/bash set -e info_msg="\e[0;32m[INFO]\e[0;30m" error_msg="\e[0;31mFAILED\e[0;30m" function output_error_log { [[ -f error.log ]] && ( cat error.log >&2; rm error.log) } echo -ne "$info_msg Checking if ruby installed? " which 'ruby' >/dev/null 2>error.log || ( echo -e "$error_msg\n\nCould not find \`ruby\`. Please install ruby or add it to PATH"; output_error_log; exit 1 ) echo OK echo -ne "$info_msg Checking if bash installed? " which 'bash' >/dev/null 2>error.log || ( echo -e "$error_msg\n\nCould not find \`bash\`. Please install bash or add it to PATH"; output_error_log; exit 1 ) echo OK echo -ne "$info_msg Checking if zsh installed? " which 'zsh' >/dev/null 2>error.log || ( echo -e "$error_msg\n\nCould not find \`zsh\`. Please install zsh or add it to PATH"; output_error_log; exit 1 ) echo OK echo -e "$info_msg rubygem \"bundler\" " gem install bundler echo -e "$info_msg \"bundle install\" " bundle install $*
Version data entries
9 entries across 9 versions & 2 rubygems