Conversation
|
Can you adjust this PR to have the same line indention as other labels? Check your "Files changed" and you'll see all the tabs that were taken out. Thanks! |
changed indents to match standard format
|
indentation fixed |
|
🤖 Validation robot 🤖 |
Cane to light during an audit the Azul jdk isn't being updated by installomater. This is an updated fragment that fixes that issue.
download URL was pulling incorrect info and trunkating the path:
original downloadURL line:
downloadURL=https://cdn.azul.com/zulu/bin/$(curl -fs "https://cdn.azul.com/zulu/bin/" | grep -Eio '">zulu17.*ca-jdk17.*x64.dmg(.*)' | cut -c3- | sed 's/<\/a>//' | sed -E 's/([0-9.]*)M//' | awk '{print $2 $1}' | sort | cut -c11- | tail -1)replacement line:
downloadURL=https://cdn.azul.com/zulu/bin/$(curl -fs "https://cdn.azul.com/zulu/bin/" | grep -Eio '">zulu17.*ca-jdk17.*x64.dmg(.*)' | cut -c3- | sed 's/<\/a>//' | sed -E 's/([0-9.]*)M//' | awk '{print $2 $1}' | sort | cut -c11- | cut -d "<" -f 1 | tail -1)removes
cut c11-and addscut -d "<" -f 1installed version check simplified
modified to use contents of info.plist:
appCustomVersion(){ if [ -f "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Info.plist" ]; then /usr/bin/defaults read "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Info.plist" "CFBundleName" | sed 's/Zulu //'; fi }logs from a clean install and an update check:
zulujdk17-clean install.log
zulujdk17-update-same-version.log