summaryrefslogtreecommitdiff
path: root/share/hooks/normal/0430-update-mlocate-database.hook.chroot
diff options
context:
space:
mode:
Diffstat (limited to 'share/hooks/normal/0430-update-mlocate-database.hook.chroot')
-rwxr-xr-xshare/hooks/normal/0430-update-mlocate-database.hook.chroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hooks/normal/0430-update-mlocate-database.hook.chroot b/share/hooks/normal/0430-update-mlocate-database.hook.chroot
index 6bfdb3d4f..df99386fe 100755
--- a/share/hooks/normal/0430-update-mlocate-database.hook.chroot
+++ b/share/hooks/normal/0430-update-mlocate-database.hook.chroot
@@ -8,7 +8,7 @@ set -e
# means that if the live system is later installed to a hard disk then less
# work will be required after installation.
-if [ -x /usr/bin/updatedb.mlocate ]
+if [ $(which updatedb.mlocate) ]
then
updatedb.mlocate
fi