Guard against exported CDPATH (fixes #316)

This commit is contained in:
Sam Stephenson 2013-01-25 12:02:11 -06:00
parent 98f45695db
commit e3f72ebae2

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
export -n CDPATH
if [ "$1" = "--debug" ]; then if [ "$1" = "--debug" ]; then
export RBENV_DEBUG=1 export RBENV_DEBUG=1