mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
Fix invoking confirm-identified-developers.scpt script (#5876)
This commit is contained in:
committed by
GitHub
parent
6de62ee5a4
commit
ae186119be
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user