diff options
Diffstat (limited to 'coin/provisioning/qtci-macos-10.12-x86_64/020-java.sh')
-rwxr-xr-x | coin/provisioning/qtci-macos-10.12-x86_64/020-java.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coin/provisioning/qtci-macos-10.12-x86_64/020-java.sh b/coin/provisioning/qtci-macos-10.12-x86_64/020-java.sh index 6ae54526..a9776ba6 100755 --- a/coin/provisioning/qtci-macos-10.12-x86_64/020-java.sh +++ b/coin/provisioning/qtci-macos-10.12-x86_64/020-java.sh @@ -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 |