Make clean() use cleanup()

Avoid DRY issues, and increase consistency.
This commit is contained in:
Chloe Kudryavtsev 2018-12-08 13:22:43 -05:00 committed by Natanael Copa
parent 8fbbffd201
commit 30d296ddb3
1 changed files with 2 additions and 3 deletions

View File

@ -472,9 +472,8 @@ unpack() {
# cleanup source and package dir
clean() {
msg "Cleaning temporary build dirs..."
rm -rf "$srcdir"
rm -rf "$pkgbasedir"
cleanup srcdir
cleanup pkgdir
}
# cleanup fetched sources