Procházet zdrojové kódy

Use `if` instead of inline `&&` so `rbenv rehash` exits with a zero status

pull/360/head^2
Sam Stephenson před 14 roky
rodič
revize
114b81c9a4
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      libexec/rbenv-rehash

+ 3
- 1
libexec/rbenv-rehash Zobrazit soubor

@ -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
}

Načítá se…
Zrušit
Uložit