diff --git a/.github/actions/setup-build/action.yaml b/.github/actions/setup-build/action.yaml index 892a9f4b..3a234b75 100644 --- a/.github/actions/setup-build/action.yaml +++ b/.github/actions/setup-build/action.yaml @@ -41,7 +41,7 @@ runs: baseVersion="$(sbt 'eval Build.baseVersion' | grep 'ans: String =' | xargs | awk '{ print $5 }')" buildMavenRepo="${baseMavenRepo}/${baseVersion}-${commitDate}-${commitHash}" - scalaVersion="$(sbt --error 'print scala3-compiler-bootstrapped/version')" + scalaVersion="$(sbt --error 'print scala3-compiler-bootstrapped/version' | head -n 1 | xargs)" fi diff --git a/compiler-builder/build.sh b/compiler-builder/build.sh index 49dc1405..d021886e 100755 --- a/compiler-builder/build.sh +++ b/compiler-builder/build.sh @@ -17,7 +17,7 @@ echo '##################################' cd "$repoDir" -compilerVersion="$(sbt --error 'print scala3-compiler-bootstrapped/version')" +compilerVersion="$(sbt --error 'print scala3-compiler-bootstrapped/version' | head -n 1 | xargs)" if [[ "$scalaVerison" != "$compilerVersion"]]; then echo "Configured version $scalaVersion does not match compiler version $compilerVersion" exit 1