mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-02 03:36:54 +08:00
Make Java installation independent from the disks in the system
Assuming that the JDK dmg will always be mounted via /dev/disk1s1 breaks when another disk is present in the system and the DMG ends up at disk2 for example. Change-Id: Ia196a6ae18f455144802167c0887bf18dafbc101 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
@@ -79,7 +79,8 @@ try
|
||||
echo Installing JDK
|
||||
(cd /Volumes/JDK\ 8\ Update\ 102/ && sudo installer -package JDK\ 8\ Update\ 102.pkg -target /) || throw $ExceptionInstall
|
||||
|
||||
hdiutil detach /dev/disk1s1 || throw $ExceptionDetachImage
|
||||
disk=`hdiutil info | grep '/Volumes/JDK 8 Update 102' | awk '{print $1}'`
|
||||
hdiutil detach $disk || throw $ExceptionDetachImage
|
||||
|
||||
echo "Removing temporary file '$targetFile'"
|
||||
rm "$targetFile" || throw $ExceptionRemoveTmpFile
|
||||
|
||||
Reference in New Issue
Block a user