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

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