Blob Blame History Raw
From 9c1ddd0962be47ab1bcc7a5e93f5aca46112c9ab Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Sat, 2 Nov 2013 13:14:40 +0100
Subject: [PATCH] dracut.sh: fixed PATH shortener

---
 dracut.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dracut.sh b/dracut.sh
index 59d3e4b..bb7e91e 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -533,7 +533,7 @@ for i in /usr/sbin /sbin /usr/bin /bin; do
     if [ -L "$i" ]; then
         rl=$(readlink -f $i)
     fi
-    if [[ "$NPATH" != "*:$rl*" ]] ; then
+    if [[ "$NPATH" != *:$rl* ]] ; then
         NPATH+=":$rl"
     fi
 done