From: Jarkko Hietaniemi Date: Wed, 27 Feb 2002 01:11:13 +0000 (+0000) Subject: Only modify LD_LIBRARY_PATH in case there are directories. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c9436a12b1ee8d5e32d19b5870c63a8435afed9d;p=p5sagit%2Fp5-mst-13.2.git Only modify LD_LIBRARY_PATH in case there are directories. p4raw-id: //depot/perl@14891 --- diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index 87d3933..1e64da1 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -322,11 +322,13 @@ case "$loclibpth" in if test -n "`ls $p/libdb.so* 2>/dev/null`"; then needusrshlib=yes fi - echo "Appending $p to LD_LIBRARY_PATH." >& 4 - case "$LD_LIBRARY_PATH" in - '') LD_LIBRARY_PATH=$p ;; - *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;; - esac + if test -d $p; then + echo "Appending $p to LD_LIBRARY_PATH." >& 4 + case "$LD_LIBRARY_PATH" in + '') LD_LIBRARY_PATH=$p ;; + *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;; + esac + fi done echo "LD_LIBRARY_PATH is now $LD_LIBRARY_PATH." >& 4 # This is evil but I can't think of a nice workaround: