Skip to content

Commit 9c70123

Browse files
committed
Java updates protected for circle CI
1 parent 932ac72 commit 9c70123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javaUpdatesOne.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if [[ -n $latestJavaLTS ]]; then
5252

5353
# Circle CI File
5454
f=".circleci/config.yml"
55-
if [ -f $f ]; then
55+
if [ -f $f ] && [ -n "$targetImageUrl" ]; then
5656
targetImageUrl=$(curl -s curl -s "https://api.adoptium.net/v3/assets/latest/$latestJavaLTS/hotspot" | jq -r '[.[] | select(.binary.image_type == "jdk" and .binary.os == "linux" and .binary.architecture == "x64")][0].binary.package.link')
5757
targetImageUrl=${targetImageUrl//\//\\/}
5858
sed -E 's/-\s*image:\s*gradle.*/- image: '"$targetGradleImage"'/g' "$f" > "$f""01"

0 commit comments

Comments
 (0)