kpatch-build: don't remove USERSRCDIR

Fixes #279.
This commit is contained in:
Josh Poimboeuf 2014-06-30 14:18:22 -05:00
parent e154296e0d
commit 403cf65b89

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