diff --git a/tools/wineinstall b/tools/wineinstall index 699eeea89a2..b9d86d882e5 100755 --- a/tools/wineinstall +++ b/tools/wineinstall @@ -292,13 +292,18 @@ then { # if the user doesn't have $libdir in their ld.so.conf add this # to our sucommand string - if [ -f /etc/ld.so.conf ] && ! grep -qs "$libdir" /etc/ld.so.conf - then { - echo - echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added" - echo "when we perform the install..." - sucommand="$sucommand;echo $libdir>>/etc/ld.so.conf;$ac_cv_path_LDCONFIG" - } + if [ -f /etc/ld.so.conf ] + then + if [ ! grep -qs "$libdir" /etc/ld.so.conf ] + then { + echo + echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added" + echo "when we perform the install..." + sucommand="$sucommand;echo $libdir>>/etc/ld.so.conf" + } + fi + # run ldconfig always just in case some updated files dont get linked + sucommand="$sucommand;$ac_cv_path_LDCONFIG" fi echo