dracut.sh: fixed PATH shortener

master
Harald Hoyer 2013-11-02 13:14:40 +01:00
parent 06d418abd1
commit cf3fd99e72
1 changed files with 1 additions and 1 deletions

View File

@ -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