From 47c5b7edf32c63f1893ee63262f71c28adedd68e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 5 Sep 2016 17:01:00 +0200 Subject: [PATCH] Fix string-compare --- imag-link/tests/link-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imag-link/tests/link-test.sh b/imag-link/tests/link-test.sh index 3722565d..de7ff1e6 100644 --- a/imag-link/tests/link-test.sh +++ b/imag-link/tests/link-test.sh @@ -36,8 +36,8 @@ test_link_modificates() { imag-link internal add --from "test" --to "test2" - if [[ "$(default_entry)" -eq "$(cat_entry 'test')" ]] || - [[ "$(default_entry)" -eq "$(cat_entry 'test2')" ]] + if [ "$(default_entry)" == "$(cat_entry 'test')" ] || + [ "$(default_entry)" == "$(cat_entry 'test2')" ] then err "Entry was unmodified after linking" return 1;