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 08ee87752a..9bc66c7aa7 100644 --- a/common/hooks/post-install/06-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/06-strip-and-debug-pkgs.sh @@ -65,7 +65,7 @@ hook() { STRIPCMD=/usr/bin/$STRIP find ${PKGDESTDIR} -type f | while read f; do - if [[ $f =~ ^/usr/lib/debug/ ]]; then + if [[ $f =~ ^${PKGDESTDIR}/usr/lib/debug/ ]]; then continue fi