[util-pkg] fix check_requirements()
This commit is contained in:
parent
9510730198
commit
7c4ddf84d3
1 changed files with 2 additions and 5 deletions
|
@ -18,11 +18,8 @@ check_chroot_version(){
|
||||||
}
|
}
|
||||||
|
|
||||||
check_requirements(){
|
check_requirements(){
|
||||||
local pb=$(find ${PWD} -maxdepth 2 -name 'PKGBUILD' -type f)
|
[[ -z $(find . -maxdepth 2 -name 'PKGBUILD' -type f) ]] && die "${0##*/} must be run inside a valid PKGBUILD directory!"
|
||||||
[[ -z ${pb[@]} ]] && die "${0##*/} must be run inside a valid PKGBUILD directory!"
|
[[ -z $(find $PWD -type d -name "${buildset_pkg}") ]] && die "${buildset_pkg} is not a valid package!"
|
||||||
for p in ${pb[@]};do
|
|
||||||
[[ $p != ${buildset_pkg} ]] && die "${buildset_pkg} doesn't exist!"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
chroot_create(){
|
chroot_create(){
|
||||||
|
|
Loading…
Reference in a new issue