Skip to content

Instantly share code, notes, and snippets.

@albb0920
Created October 26, 2012 09:20
Show Gist options
  • Save albb0920/3957802 to your computer and use it in GitHub Desktop.
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.
#!/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