From 974f2805f2c84232b604c645387017c7ff67e1ed Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 13 Apr 2019 17:44:30 -0300 Subject: [PATCH] 00-compress-info-files.sh: remove dirname usage --- common/hooks/post-install/00-compress-info-files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/post-install/00-compress-info-files.sh b/common/hooks/post-install/00-compress-info-files.sh index 6ae8c13288..7cc0c90c62 100644 --- a/common/hooks/post-install/00-compress-info-files.sh +++ b/common/hooks/post-install/00-compress-info-files.sh @@ -30,7 +30,7 @@ hook() { continue fi if [ -h ${PKGDESTDIR}/"$j" ]; then - dirat=$(dirname "$j") + dirat="${j%/*}/" lnkat=$(readlink ${PKGDESTDIR}/"$j") newlnk="${j##*/}" rm -f ${PKGDESTDIR}/"$j"