Blame SOURCES/0057-dracut.sh-fixed-PATH-shortener.patch

966cef
From 9c1ddd0962be47ab1bcc7a5e93f5aca46112c9ab Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Sat, 2 Nov 2013 13:14:40 +0100
966cef
Subject: [PATCH] dracut.sh: fixed PATH shortener
966cef
966cef
---
966cef
 dracut.sh | 2 +-
966cef
 1 file changed, 1 insertion(+), 1 deletion(-)
966cef
966cef
diff --git a/dracut.sh b/dracut.sh
966cef
index 59d3e4b..bb7e91e 100755
966cef
--- a/dracut.sh
966cef
+++ b/dracut.sh
966cef
@@ -533,7 +533,7 @@ for i in /usr/sbin /sbin /usr/bin /bin; do
966cef
     if [ -L "$i" ]; then
966cef
         rl=$(readlink -f $i)
966cef
     fi
966cef
-    if [[ "$NPATH" != "*:$rl*" ]] ; then
966cef
+    if [[ "$NPATH" != *:$rl* ]] ; then
966cef
         NPATH+=":$rl"
966cef
     fi
966cef
 done