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
241
Wiki
Activity
Browse Source
Use `if` instead of inline `&&` so `rbenv rehash` exits with a zero status
pull/360/head^2
Sam Stephenson
14 years ago
parent
b10bdb1e78
commit
114b81c9a4
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
libexec/rbenv-rehash
+ 3
- 1
libexec/rbenv-rehash
View File
@ -120,7 +120,9 @@ remove_stale_shims() {
local var
for shim in *; do
var="$(shim_variable_name "$shim")"
[ -z "${!var}" ] && rm -f "$shim"
if [ -z "${!var}" ]; then
rm -f "$shim"
fi
done
}
Write
Preview
Loading…
Cancel
Save