Last active
August 14, 2023 14:24
-
-
Save richiethomas/272b7719f3c75abf6818a8211552004e to your computer and use it in GitHub Desktop.
shim of the "bundle" command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
[ -n "$RBENV_DEBUG" ] && set -x | |
program="${0##*/}" | |
if [ "$program" = "ruby" ]; then | |
for arg; do | |
case "$arg" in | |
-e* | -- ) break ;; | |
*/* ) | |
if [ -f "$arg" ]; then | |
export RBENV_DIR="${arg%/*}" | |
break | |
fi | |
;; | |
esac | |
done | |
fi | |
export RBENV_ROOT="/Users/richiethomas/.rbenv" | |
exec "/Users/richiethomas/.rbenv/libexec/rbenv" exec "$program" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment