Author: pierre
Date: Sat Dec 23 07:56:03 2017
New Revision: 19619

Log:
Fix a possible error in "remove-la-files.sh":
If /opt is empty, the instruction "find /opt/* ..." exits with non zero
status. The new instruction should be equivalent, but without this issue.

Modified:
   trunk/BOOK/introduction/important/la-files.xml

Modified: trunk/BOOK/introduction/important/la-files.xml
==============================================================================
--- trunk/BOOK/introduction/important/la-files.xml      Sat Dec 23 01:08:58 
2017        (r19618)
+++ trunk/BOOK/introduction/important/la-files.xml      Sat Dec 23 07:56:03 
2017        (r19619)
@@ -100,7 +100,7 @@
 mkdir -p $OLD_LA_DIR
 
 # Only search directories in /opt, but not symlinks to directories
-OPTDIRS=$(find /opt/* -maxdepth 0 -type d)
+OPTDIRS=$(find /opt -mindepth 1 -maxdepth 1 -type d)
 
 # Move any found .la files to a directory out of the way
 find /usr/lib $OPTDIRS -name "*.la" ! -path "/usr/lib/ImageMagick*" \
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to