File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,10 @@ - (void)beginInstalling
145
145
/*
146
146
* detect if XQuartz is installed
147
147
*/
148
- if (access (XQUARTZ_PATH, F_OK) = = 0 )
148
+ if (access (XQUARTZ_PATH, F_OK) ! = 0 )
149
149
{
150
+ [self writeToLog: @" XQuartz is missing, downloading...\n\n " ];
151
+
150
152
//
151
153
// Must start the Helper
152
154
//
Original file line number Diff line number Diff line change 14
14
curl -L -s -o /tmp/XQuartz.dmg https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.11.dmg
15
15
16
16
# mount dmg
17
- hdiutil attach /tmp/XQuartz.dmg -mountpoint /Volumes/XQuartz
17
+ # (make it invisible to Finder)
18
+ hdiutil attach /tmp/XQuartz.dmg -mountpoint /Volumes/XQuartz -nobrowse
18
19
19
20
# run the intstaller
20
21
installer -pkg /Volumes/XQuartz/XQuartz.pkg -target /
21
22
22
23
# umnount
23
- hdiutil detach /Volumes/XQuartz
24
+ hdiutil detach /Volumes/XQuartz -force
24
25
25
26
# cleanup
26
27
rm -f /tmp/XQuartz.dmg
You can’t perform that action at this time.
0 commit comments