Created
October 26, 2012 09:20
-
-
Save albb0920/3957802 to your computer and use it in GitHub Desktop.
If you use whenever and find bash -l -c won't load rbenv, here's a hacky way to fix it.
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
#!/bin/bash | |
# Save this file to /usr/bin/rbenv.bash, chmod +x it, and set SHELL variable in crontab to this. | |
export RBENV_ROOT=/usr/local/rbenv | |
export PATH="$RBENV_ROOT/bin:$PATH" | |
eval "$(rbenv init -)"; | |
bash "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment