Fixes exit 1 issue when tmp cache doesn't exist
Found if this `${cache}` file doesn't exist, the single line conditional command would return false causing a `exit 1`.
This little change makes the conditional verbose and not cause a false return failing the function.
pull/1311/head
parent
792593c995
commit
fedb72b34f
|
|
@ -44,7 +44,9 @@ _bash-it-clean-component-cache() {
|
|||
done
|
||||
else
|
||||
cache="$(_bash-it-component-cache-file ${component})"
|
||||
[[ -f "${cache}" ]] && rm -f "${cache}"
|
||||
if [[ -f "${cache}" ]] ; then
|
||||
rm -f "${cache}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue