This website works better with JavaScript.
Home
Explore
Help
Sign In
isprogram
/
pyenv
mirror of
https://github.com/pyenv/pyenv.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
181
Wiki
Activity
Browse Source
use PWD var over pwd command
pull/504/head^2
Jason Karns
8 years ago
parent
87dd5fe2c0
commit
a1ef9efc80
1 changed files
with
3 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-3
libexec/rbenv
+ 3
- 3
libexec/rbenv
View File
@ -36,7 +36,7 @@ else
}
}
abs_dirname() {
abs_dirname() {
local cwd="$
(pwd)
"
local cwd="$
PWD
"
local path="$1"
local path="$1"
while [ -n "$path" ]; do
while [ -n "$path" ]; do
@ -58,10 +58,10 @@ fi
export RBENV_ROOT
export RBENV_ROOT
if [ -z "${RBENV_DIR}" ]; then
if [ -z "${RBENV_DIR}" ]; then
RBENV_DIR="$
(pwd)
"
RBENV_DIR="$
PWD
"
else
else
cd "$RBENV_DIR" 2>/dev/null || abort "cannot change working directory to \`$RBENV_DIR'"
cd "$RBENV_DIR" 2>/dev/null || abort "cannot change working directory to \`$RBENV_DIR'"
RBENV_DIR="$
(pwd)
"
RBENV_DIR="$
PWD
"
cd "$OLDPWD"
cd "$OLDPWD"
fi
fi
export RBENV_DIR
export RBENV_DIR
Write
Preview
Loading…
Cancel
Save