#!/bin/bash # # flapper # PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local:/usr/local/sbin:/usr/local/bin:/usr/lib/flapjack/bin # load global rbenv environment if present if [ -x /etc/profile.d/rbenv.sh ] ; then source /etc/profile.d/rbenv.sh fi # Default return value RETVAL=0 if [ ! $(which flapper) ]; then echo "Error: flapper isn't in PATH." echo "Refusing to do anything!" exit 1 fi # Evaluate command rbenv shell 1.9.3-p125 && flapper $1 RETVAL=$? exit $RETVAL