From 8742575c33ddc2bef2511adf6253fb4ba9839c66 Mon Sep 17 00:00:00 2001 From: "Evgeniy A. Dushistov" Date: Fri, 24 Jun 2022 21:26:10 +0300 Subject: [PATCH] fix bash syntax error --- tests/t_newlines_in_ifo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/t_newlines_in_ifo b/tests/t_newlines_in_ifo index 6640498..c3541cd 100755 --- a/tests/t_newlines_in_ifo +++ b/tests/t_newlines_in_ifo @@ -6,11 +6,13 @@ PATH_TO_SDCV="$1" TEST_DIR="$2" unset SDCV_PAGER +unset STARDICT_DATA_DIR RES=$("$PATH_TO_SDCV" -n -x --data-dir="$TEST_DIR/not-unix-newlines-ifo" -l | tail -n 1) -if [ "$RES" == "Russian-English Dictionary (ru-en) 415144" ]; then + +if [ "$RES" = "Russian-English Dictionary (ru-en) 415144" ]; then exit 0 else echo "test failed, unexpected result: $RES" >&2 exit 1 -fi \ No newline at end of file +fi