diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-12 21:47:09 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-12 21:47:09 +0100 |
commit | 84f831bc5c31d470debb87ac78e72669e00de029 (patch) | |
tree | f7900dc71a5a19f216d0de71fd3350695da7623a | |
parent | c88414b54cc41c92122e28a9d0c2e4821a07df0f (diff) |
check_is_in fix
-rw-r--r-- | src/core/libs/lib-misc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/libs/lib-misc.sh b/src/core/libs/lib-misc.sh index d04e850..fd2ebb8 100644 --- a/src/core/libs/lib-misc.sh +++ b/src/core/libs/lib-misc.sh @@ -50,7 +50,7 @@ wait_for () # $2 needle check_is_in () { - [ -z "$2" ] && die_error "check_is_in needs a needle as \$2 and a haystack as \$1!" + [ -z "$1" ] && debug "check_is_in $1 $2" && die_error "check_is_in needs a non-empty needle as \$2 and a haystack as \$1!" # haystack can be empty though local pattern="$1" element shift |