mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Use if
instead of inline &&
so rbenv rehash
exits with a zero status
This commit is contained in:
parent
b10bdb1e78
commit
114b81c9a4
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ remove_stale_shims() {
|
||||||
local var
|
local var
|
||||||
for shim in *; do
|
for shim in *; do
|
||||||
var="$(shim_variable_name "$shim")"
|
var="$(shim_variable_name "$shim")"
|
||||||
[ -z "${!var}" ] && rm -f "$shim"
|
if [ -z "${!var}" ]; then
|
||||||
|
rm -f "$shim"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue