summaryrefslogtreecommitdiff
path: root/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot
diff options
context:
space:
mode:
Diffstat (limited to 'share/hooks/normal/0410-update-apt-xapian-index.hook.chroot')
-rwxr-xr-xshare/hooks/normal/0410-update-apt-xapian-index.hook.chroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot b/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot
index 93801e511..f737ad171 100755
--- a/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot
+++ b/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot
@@ -8,7 +8,7 @@ set -e
# is not allowed to, and (b) it wants to build the index in the background which
# will be racy in the context of live-build.
-if [ $(which update-apt-xapian-index) ]
+if command -v update-apt-xapian-index >/dev/null
then
PYTHONDONTWRITEBYTECODE=1 update-apt-xapian-index --force --quiet
fi