Merge pull request #1311 from kylewelsby/bugfix/missing-tmp-cache-exit-1

Fixes early exit if tmp cache is missing
pull/1316/head
Nils Winkler 2019-01-21 08:35:07 +01:00 committed by GitHub
commit 78e9c0cf6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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