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

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