mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 17:31:56 +00:00
fix bash syntax error
This commit is contained in:
@@ -6,11 +6,13 @@ PATH_TO_SDCV="$1"
|
|||||||
TEST_DIR="$2"
|
TEST_DIR="$2"
|
||||||
|
|
||||||
unset SDCV_PAGER
|
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)
|
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
|
exit 0
|
||||||
else
|
else
|
||||||
echo "test failed, unexpected result: $RES" >&2
|
echo "test failed, unexpected result: $RES" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user