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

View File

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