r1556 - profiles/BLFS/trunk/config_standard/etc/profile.d

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Mon Oct 11 16:16:28 PDT 2004


Author: kpfleming
Date: 2004-10-11 17:16:25 -0600 (Mon, 11 Oct 2004)
New Revision: 1556

Modified:
   profiles/BLFS/trunk/config_standard/etc/profile.d/extrapaths.sh
Log:
update script to match book (suppress errors from find)


Modified: profiles/BLFS/trunk/config_standard/etc/profile.d/extrapaths.sh
===================================================================
--- profiles/BLFS/trunk/config_standard/etc/profile.d/extrapaths.sh	2004-10-07 23:36:13 UTC (rev 1555)
+++ profiles/BLFS/trunk/config_standard/etc/profile.d/extrapaths.sh	2004-10-11 23:16:25 UTC (rev 1556)
@@ -7,10 +7,10 @@
 if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then
         pathprepend /usr/local/sbin
 fi
-for directory in $(find /opt/*/lib/pkgconfig -type d); do
+for directory in $(find /opt/*/lib/pkgconfig -type d 2> /dev/null); do
         pathappend $directory PKG_CONFIG_PATH
 done
-for directory in $(find /opt/*/bin -type d); do
+for directory in $(find /opt/*/bin -type d 2> /dev/null); do
         pathappend $directory
 done
 if [ -d ~/bin ]; then




More information about the alfs-log mailing list