lib/tests: Clarify assignment

The extra equal sign was confusing, and doesn't seem to be relevant.
This commit is contained in:
Victor Engmark 2021-11-26 09:58:35 +13:00
parent 5e85cd86af
commit 41fd1d8626

View File

@ -44,7 +44,7 @@ checkConfigError() {
local errorContains=$1
local err=""
shift;
if err==$(evalConfig "$@" 2>&1 >/dev/null); then
if err="$(evalConfig "$@" 2>&1 >/dev/null)"; then
echo 2>&1 "error: Expected error code, got exit code 0, while evaluating"
reportFailure "$@"
return 1