mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 22:03:52 -05:00
Use if instead of inline && so rbenv rehash exits with a zero status
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user