]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/dracut-lib.sh:incol2() return 1 on error
authorHarald Hoyer <harald@redhat.com>
Thu, 7 Apr 2011 10:56:09 +0000 (12:56 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 8 Apr 2011 11:27:07 +0000 (13:27 +0200)
modules.d/99base/dracut-lib.sh

index 0e69793e22d851bc139b34846b98fa7739fea0c0..48403cf4a9b83338df3f36182addac85a12b7dd7 100755 (executable)
@@ -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