consistency_check.sh: remove dirname usage

This commit is contained in:
maxice8 2019-04-13 17:45:35 -03:00 committed by maxice8
parent 974f2805f2
commit 372ae10639
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ consistency_check_smart () {
consistency_check() {
local pkg= pkgname=
for pkg in "$XBPS_SRCPKGDIR"/*/template; do
XBPS_TARGET_PKG=$(basename $(dirname $pkg))
pkg=${pkg%*/}/
XBPS_TARGET_PKG=${pkg##*/}
(
read_pkg
[ "$depends" ] && printf "%s $pkgname depends\n" $depends