base/dracut-lib.sh:incol2() return 1 on error
parent
36e30eb096
commit
a2cb4dbc82
|
@ -299,8 +299,8 @@ incol2() {
|
||||||
local file="$1";
|
local file="$1";
|
||||||
local str="$2";
|
local str="$2";
|
||||||
|
|
||||||
[ -z "$file" ] && return;
|
[ -z "$file" ] && return 1;
|
||||||
[ -z "$str" ] && return;
|
[ -z "$str" ] && return 1;
|
||||||
|
|
||||||
while read dummy check restofline; do
|
while read dummy check restofline; do
|
||||||
[ "$check" = "$str" ] && return 0
|
[ "$check" = "$str" ] && return 0
|
||||||
|
|
Loading…
Reference in New Issue