We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 932ac72 commit 9c70123Copy full SHA for 9c70123
javaUpdatesOne.sh
@@ -52,7 +52,7 @@ if [[ -n $latestJavaLTS ]]; then
52
53
# Circle CI File
54
f=".circleci/config.yml"
55
- if [ -f $f ]; then
+ if [ -f $f ] && [ -n "$targetImageUrl" ]; then
56
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')
57
targetImageUrl=${targetImageUrl//\//\\/}
58
sed -E 's/-\s*image:\s*gradle.*/- image: '"$targetGradleImage"'/g' "$f" > "$f""01"
0 commit comments