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
Copy file name to clipboardExpand all lines: skills/detection/yolo-detection-2026-coral-tpu/deploy.sh
+5-47Lines changed: 5 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -32,52 +32,9 @@ ask_sudo() {
32
32
return$?
33
33
fi
34
34
35
-
echo""
36
-
echo -e "\033[1;33m[SUDO REQUIRED]\033[0m Aegis needs administrator privileges to $desc."
37
-
echo"A secure native OS authorization window should appear shortly."
38
-
echo"If it does not appear or you cancel the prompt, manual fallback instructions will be provided."
39
-
echo""
40
-
41
-
local success=0
42
-
43
-
if [ "$PLATFORM"="Darwin" ];then
44
-
# Use native macOS GUI authorization with an interactive prelude dialog
45
-
local apple_script="
46
-
try
47
-
set dialogMessage to \"Aegis requires Admin Privileges to install Native drivers:\n\n$cmd\n\nIf approved, a secure OS dialog will request your password. Aegis is blind to your input.\n\nIf you prefer to execute this manually, choose 'Manual Install'.\"
48
-
set userChoice to button returned of (display dialog dialogMessage buttons {\"Manual Install\", \"Approve\"} default button \"Approve\" with title \"Aegis Hardware Setup\" with icon caution)
49
-
50
-
if userChoice is \"Approve\" then
51
-
do shell script \"$cmd\" with administrator privileges
0 commit comments