From c66b41eb7e8a7417e5ccca6b7f7a579f85e6e238 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Tue, 2 May 2023 11:20:51 +0200 Subject: [PATCH] Use dpkg-query --show to not get stuck in a pager --- hooks/eatmydata/customize.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/eatmydata/customize.sh b/hooks/eatmydata/customize.sh index 5c54947..c675848 100755 --- a/hooks/eatmydata/customize.sh +++ b/hooks/eatmydata/customize.sh @@ -17,10 +17,10 @@ libdir="/usr/lib/$(dpkg-architecture -a "$chrootarch" -q DEB_HOST_MULTIARCH)" # if eatmydata was actually installed properly, then we are not removing # anything here -if ! chroot "$rootdir" dpkg-query --list eatmydata; then +if ! chroot "$rootdir" dpkg-query --show eatmydata; then rm "$rootdir/usr/bin/eatmydata" fi -if ! chroot "$rootdir" dpkg-query --list libeatmydata1; then +if ! chroot "$rootdir" dpkg-query --show libeatmydata1; then rm "$rootdir$libdir"/libeatmydata.so* fi