Fix invoking confirm-identified-developers.scpt script (#5876)

This commit is contained in:
Aleksandr Chebotov
2022-07-08 10:40:48 +02:00
committed by GitHub
parent 6de62ee5a4
commit ae186119be

View File

@@ -19,6 +19,22 @@ done
# Execute AppleScript to change security preferences for virtualbox
# System Preferences -> Security & Privacy -> General -> Unlock -> Allow -> Not now
if is_Monterey; then
if is_Veertu; then
retry=10
while [ $retry -gt 0 ]; do
{
osascript -e 'tell application "System Events" to get application processes where visible is true'
} && break
retry=$((retry-1))
if [ $retry -eq 0 ]; then
echo "No retry attempts left"
exit 1
fi
sleep 10
done
fi
osascript $HOME/utils/confirm-identified-developers.scpt $USER_PASSWORD
fi