send sed errors to /dev/null to account for kde not being installed #172459
authorMike Frysinger <vapier@gentoo.org>
Wed, 28 Mar 2007 06:19:12 +0000 (06:19 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 28 Mar 2007 06:19:12 +0000 (06:19 +0000)
sys-devel/prelink/files/prelink.cron

index 37b119d6b8e28206537ab660d44fec168d26fb1b..2561e9d3727a65769e13d4d9f80a5524fc2a0d36 100644 (file)
@@ -5,7 +5,7 @@
 renice +19 -p $$ >/dev/null 2>&1
 
 if [ "$PRELINKING" != yes ]; then
-  sed -ri '/^[[:space:]]*#?[[:space:]]*KDE_IS_PRELINKED=/s:.*:#KDE_IS_PRELINKED=1:' /etc/env.d/*kde*
+  sed -ri '/^[[:space:]]*#?[[:space:]]*KDE_IS_PRELINKED=/s:.*:#KDE_IS_PRELINKED=1:' /etc/env.d/*kde* 2>/dev/null
   if [ -f /etc/prelink.cache ]; then
     echo /usr/sbin/prelink -uav > /var/log/prelink.log
     /usr/sbin/prelink -uav >> /var/log/prelink.log 2>&1 \
@@ -17,7 +17,7 @@ if [ "$PRELINKING" != yes ]; then
   exit 0
 fi
 
-sed -ri '/^[[:space:]]*#?[[:space:]]*KDE_IS_PRELINKED=/s:.*:KDE_IS_PRELINKED=1:' /etc/env.d/*kde*
+sed -ri '/^[[:space:]]*#?[[:space:]]*KDE_IS_PRELINKED=/s:.*:KDE_IS_PRELINKED=1:' /etc/env.d/*kde* 2>/dev/null
 
 if [ ! -f /etc/prelink.cache -o -f /var/lib/misc/prelink.force ] \
    || grep -q '^prelink-ELF0.[0-2]' /etc/prelink.cache; then