Skip to content

Commit

Permalink
Update build.sh, fix exec in linux os
Browse files Browse the repository at this point in the history
Signed-off-by: gzchen008 <[email protected]>
  • Loading branch information
gzchen008 committed Jun 19, 2023
1 parent 4bfe1b0 commit 2d41912
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ build_java() {
mkdir "$dir"
ls builders/java/ | grep -v 'java.*' | xargs -i cp -r builders/java/{} "$dir"/

sed -i -e "s/< JAVA_VERSION >/${java_version}/g" "$dir"/builder.toml
sed -i -e "s/< JAVA_VERSION >/${java_version}/g" "$dir"/BUILD.bazel
sed -i -e "s/< JAVA_VERSION >/${java_version}/g" "$dir"/stack/build.sh
sed -i -e "s/< JAVA_VERSION >/${java_version}/g" "$dir"/stack/parent.Dockerfile

sed -i -e "s/< REGISTRY >/${docker_registry}/g" "$dir"/builder.toml
sed -i -e "s/< REGISTRY >/${docker_registry}/g" "$dir"/BUILD.bazel
sed -i -e "s/< REGISTRY >/${docker_registry}/g" "$dir"/stack/build.sh
sed -i -e "s#< JAVA_VERSION >#${java_version}#g" "$dir"/builder.toml
sed -i -e "s#< JAVA_VERSION >#${java_version}#g" "$dir"/BUILD.bazel
sed -i -e "s#< JAVA_VERSION >#${java_version}#g" "$dir"/stack/build.sh
sed -i -e "s#< JAVA_VERSION >#${java_version}#g" "$dir"/stack/parent.Dockerfile

sed -i -e "s#< REGISTRY >#${docker_registry}#g" "$dir"/builder.toml
sed -i -e "s#< REGISTRY >#${docker_registry}#g" "$dir"/BUILD.bazel
sed -i -e "s#< REGISTRY >#${docker_registry}#g" "$dir"/stack/build.sh

if [[ -n "$run_image" ]]; then
sed -ri "s/(run-image = )[^\n]*/\1\"${run_image}\"/" "$dir"/builder.toml
Expand Down

0 comments on commit 2d41912

Please sign in to comment.