consistency_check.sh: fix dirname

This commit is contained in:
maxice8 2019-04-14 09:31:37 -03:00
parent cdb6bf6e94
commit 9c39291c28
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -65,7 +65,7 @@ consistency_check_smart () {
consistency_check() {
local pkg= pkgname=
for pkg in "$XBPS_SRCPKGDIR"/*/template; do
pkg=${pkg%*/}/
pkg=${pkg%/*}
XBPS_TARGET_PKG=${pkg##*/}
(
read_pkg