diff --git a/lib/functions/main/rootfs-image.sh b/lib/functions/main/rootfs-image.sh index 33a014a4cb..2ee3cd93fa 100644 --- a/lib/functions/main/rootfs-image.sh +++ b/lib/functions/main/rootfs-image.sh @@ -56,7 +56,7 @@ function build_rootfs_and_image() { LOG_SECTION="apt_lists_copy_from_host_to_image_and_update" do_with_logging apt_lists_copy_from_host_to_image_and_update # creating xapian index that synaptic runs faster - if [[ "${BUILD_DESKTOP}" == yes && ${BETA} != "yes" && -f "${SDCARD}/usr/sbin/update-apt-xapian-index" ]]; then + if [[ "${BUILD_DESKTOP}" == yes && "${BETA}" != "yes" && -f "${SDCARD}/usr/sbin/update-apt-xapian-index" ]]; then display_alert "Recreating Synaptic search index" "Please wait - updating Xapian index for image" "info" chroot_sdcard "/usr/sbin/update-apt-xapian-index -u" fi