From 668849603d0b44a176167e3ed870f613832f892c Mon Sep 17 00:00:00 2001 From: sysescool Date: Wed, 17 Jul 2024 02:20:51 +0800 Subject: [PATCH] Desktop: Fixes #10716: fix joplin install fails because ldconfig not found libfuse2 but it is indeed installed. (#10717) --- Joplin_install_and_update.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Joplin_install_and_update.sh b/Joplin_install_and_update.sh index c49d58ea3..133e2ef2d 100755 --- a/Joplin_install_and_update.sh +++ b/Joplin_install_and_update.sh @@ -120,9 +120,10 @@ fi print "Checking dependencies..." ## Check if libfuse2 is present. if [[ $(command -v ldconfig) ]]; then - LIBFUSE=$(ldconfig -p | grep "libfuse.so.2" || echo '') -else - LIBFUSE=$(find /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib -name "libfuse.so.2" 2>/dev/null | grep "libfuse.so.2" || echo '') + LIBFUSE=$(ldconfig -p | grep "libfuse.so.2" || echo '') +fi +if [[ $LIBFUSE == "" ]]; then + LIBFUSE=$(find /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib -name "libfuse.so.2" 2>/dev/null | grep "libfuse.so.2" || echo '') fi if [[ $LIBFUSE == "" ]]; then print "${COLOR_RED}Error: Can't get libfuse2 on system, please install libfuse2${COLOR_RESET}"