diff --git a/makechrootpkg.in b/makechrootpkg.in index 762ad7b65836b011028df1dbc570373f7bab5c65..fb911009b6fbb93a7f3a6c626e2be07fa8c44041 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -161,8 +161,8 @@ if [[ -n $install_pkg ]]; then rm "$copydir/$pkgname" - # Exit early, we've done all we need to - exit $ret + # If there is no PKGBUILD we have done + [[ -f PKGBUILD ]] || exit $ret fi $update_first && mkarchroot -u "$copydir"