base/dracut-lib.sh:incol2() return 1 on error

master
Harald Hoyer 2011-04-07 12:56:09 +02:00
parent 36e30eb096
commit a2cb4dbc82
1 changed files with 2 additions and 2 deletions

View File

@ -299,8 +299,8 @@ incol2() {
local file="$1";
local str="$2";

[ -z "$file" ] && return;
[ -z "$str" ] && return;
[ -z "$file" ] && return 1;
[ -z "$str" ] && return 1;

while read dummy check restofline; do
[ "$check" = "$str" ] && return 0