diff options
author | maxice8 <thinkabit.ukim@gmail.com> | 2019-04-13 20:47:05 +0000 |
---|---|---|
committer | maxice8 <30738253+maxice8@users.noreply.github.com> | 2019-04-14 09:22:09 +0000 |
commit | 5b26fde9c02c948d1ab21f14923745a13db8097c (patch) | |
tree | 7f5e9aed003984f2e3cffe2ebb3a79e1978c16eb | |
parent | 372ae10639df949e81a368a6e6e8c71b05d0ae6b (diff) | |
download | void-packages-5b26fde9c02c948d1ab21f14923745a13db8097c.tar void-packages-5b26fde9c02c948d1ab21f14923745a13db8097c.tar.gz void-packages-5b26fde9c02c948d1ab21f14923745a13db8097c.tar.bz2 void-packages-5b26fde9c02c948d1ab21f14923745a13db8097c.tar.lz void-packages-5b26fde9c02c948d1ab21f14923745a13db8097c.tar.xz void-packages-5b26fde9c02c948d1ab21f14923745a13db8097c.tar.zst void-packages-5b26fde9c02c948d1ab21f14923745a13db8097c.zip |
06-strip-and-debug-pkgs.sh: remove dirname usage
-rw-r--r-- | common/hooks/post-install/06-strip-and-debug-pkgs.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/hooks/post-install/06-strip-and-debug-pkgs.sh b/common/hooks/post-install/06-strip-and-debug-pkgs.sh index 4a703c8007f..075461304ce 100644 --- a/common/hooks/post-install/06-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/06-strip-and-debug-pkgs.sh @@ -7,7 +7,7 @@ make_debug() { [ -n "$nodebug" ] && return 0 - dname=$(echo "$(dirname $1)"|sed -e "s|${PKGDESTDIR}||g") + dname=${1%/*}/ ; dname=${dname#$PKGDESTDIR} fname="${1##*/}" dbgfile="${dname}/${fname}" @@ -26,7 +26,7 @@ attach_debug() { [ -n "$nodebug" ] && return 0 - dname=$(echo "$(dirname $1)"|sed -e "s|${PKGDESTDIR}||g") + dname=${1%/*}/ ; dname=${dname#$PKGDESTDIR} fname="${1##*/}" dbgfile="${dname}/${fname}" |