forked from mirrored-repos/manjaro-tools
[util-pkg] finish check_requirements()
This commit is contained in:
parent
cffaa8a8e2
commit
6058ed34a1
1 changed files with 7 additions and 3 deletions
|
@ -17,9 +17,13 @@ check_chroot_version(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#check_dir(){
|
check_reqirements(){
|
||||||
#check for pkgbuilds
|
local pb=$(find ${PWD} -maxdepth 2 -name 'PKGBUILD' -type f)
|
||||||
#}
|
[[ -z ${pb[@]} ]] && die "${0##*/} must be run inside a valid PKGBUILD directory!"
|
||||||
|
for p in ${pb[@]};do
|
||||||
|
[[ $p != ${buildset_pkg} ]] && die "${buildset_pkg} doesn't exist!"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
chroot_create(){
|
chroot_create(){
|
||||||
msg "Creating chroot for [${branch}] (${arch})..."
|
msg "Creating chroot for [${branch}] (${arch})..."
|
||||||
|
|
Loading…
Reference in a new issue