You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DownloadedOutput=$(sudo find ~/Desktop -type d -name '*big-sur-micropatcher-*')
@@ -94,17 +97,22 @@ fi
94
97
95
98
echo'Micropatcher detected! Continuing...'
96
99
97
-
if [ !-d /Volumes/USB ];then
98
-
echo'/Volumes/USB is not mounted, please confirm that your USB is detected by the machine and named "USB"'
100
+
USB_VOLUME=$(osascript -e 'return (choose from list (get paragraphs of (do shell script "ls /Volumes")) with prompt "What volume would you like to use?") as string')
101
+
102
+
if [ !-d /Volumes/$USB_Volume ];then
103
+
echo'USB is not mounted, please confirm that your USB is detected by the machine and named "USB"'
99
104
exit
100
105
fi
101
106
107
+
echo$(echo "/Volumes/$USB_VOLUME"| sed 's/ /\ /g')>> /tmp/choice
108
+
109
+
102
110
echo'Running createinstallmedia. DO NOT CLOSE.'
103
111
echo'To check to see if createinstallmedia is progressing, open Activity Monitor and search createinstallmedia.'
0 commit comments