Merge pull request #280 from jpoimboe/cache-rm-fix

kpatch-build: don't remove USERSRCDIR
This commit is contained in:
Seth Jennings 2014-06-30 14:35:49 -05:00
commit 26815a1ad9

View File

@ -78,7 +78,8 @@ cleanup() {
}
clean_cache() {
rm -rf "$SRCDIR" "$OBJDIR" "$OBJDIR2" "$VERSIONFILE"
[[ -z $USERSRCDIR ]] && rm -rf "$SRCDIR"
rm -rf "$OBJDIR" "$OBJDIR2" "$VERSIONFILE"
mkdir -p "$OBJDIR"
}