mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Quote directory name in variable assignment
This commit is contained in:
parent
9d93605e18
commit
b80ea43e25
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ export RBENV_ROOT
|
|||
if [ -z "${RBENV_DIR}" ]; then
|
||||
RBENV_DIR="$PWD"
|
||||
else
|
||||
[[ $RBENV_DIR == /* ]] || RBENV_DIR=$PWD/$RBENV_DIR
|
||||
[[ $RBENV_DIR == /* ]] || RBENV_DIR="$PWD/$RBENV_DIR"
|
||||
cd "$RBENV_DIR" 2>/dev/null || abort "cannot change working directory to \`$RBENV_DIR'"
|
||||
RBENV_DIR="$PWD"
|
||||
cd "$OLDPWD"
|
||||
|
|
Loading…
Reference in a new issue