#!/bin/bash --login if [[ $CRYPTUM_ROOT == '' ]]; then if [[ ! -d '/opt/cryptum' ]]; then cryptum_root=$(pwd) else cryptum_root='/opt/cryptum' fi else cryptum_root="${CRYPTUM_ROOT}" fi export rvmsudo_secure_path=1 rvmsudo /bin/bash --login -c "cd ${cryptum_root} && ./build_cryptum_gem.sh"