From 5e18730ca6dd725fa90999bb62e38f50b65b9839 Mon Sep 17 00:00:00 2001 From: Readon Date: Tue, 7 Nov 2023 21:15:45 +0800 Subject: [PATCH] fix compare condition. --- test_template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_template.sh b/test_template.sh index ea0779c..6795f7a 100644 --- a/test_template.sh +++ b/test_template.sh @@ -23,7 +23,7 @@ do_test(){ sed -i "s/\(val spinalVersion = \)\(\".*\"\)/\1\"${_spinal_version}\"/" build.sbt sed -i "s/\(scalaVersion := \)\(\".*\"\)/\1\"${_scala_full_version}\"/" build.sbt - if [ is_version_smaller_eq ${_spinal_version} ${_spinal_with_wrong_scalatest_version} ]; then + if [ $(is_version_smaller_eq ${_spinal_version} ${_spinal_with_wrong_scalatest_version}) == "true" ]; then sed -i '/spinalIdslPlugin =/a\ val scalaTest = "org.scalatest" %% "scalatest" % "3.2.14"' build.sbt sed -i 's/\(, spinalIdslPlugin\)/\1, scalaTest/' build.sbt