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
set unlockList to choose from list volumeList with title \"BootUnlock\" with prompt \"
54
-
Please select volume(s) you want to be automatically unlocked during the boot (you can select multiple volumes by holding the Option key)\" multiple selections allowed true empty selection allowed true
51
+
RESPONSE=$(osascript -l JavaScript -e "
52
+
var app = Application.currentApplication()
53
+
app.includeStandardAdditions = true
54
+
volumeList = [ $VOLUME_LIST ]
55
+
app.chooseFromList(volumeList,
56
+
{
57
+
withPrompt: 'Please select volume(s) you want to be automatically unlocked during the boot (you can select multiple volumes by holding the Command key)',
while:;do# This is a wrapper in case user provides a wrong password
78
-
PASSPHRASE=$(osascript -e "
79
-
display dialog \"Please provide the passphrase for volume '$NAME':\" with title \"BootUnlock\" buttons { \"Skip\", \"Unlock\" } default button \"Unlock\" with icon file ((path to \"apps\" as text) & \"Utilities:Disk Utility.app:Contents:Resources:AppIcon.icns\") default answer \"\" hidden answer true
0 commit comments