Skip to content

Commit 0c42693

Browse files
committed
Convert dialogs to notifications
1 parent 00aa7ed commit 0c42693

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/flash_adv360pro.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ selected_dir=$(find ~/Downloads -maxdepth 1 -type d -name "*firmware-no-clique*"
55

66
# Check if we found a directory
77
if [ -z "$selected_dir" ]; then
8-
osascript -e 'display dialog "No firmware-no-clique directory found" buttons {"OK"} default button "OK"'
8+
osascript -e 'display notification "No firmware-no-clique directory found"'
99
exit 1
1010
fi
1111

@@ -14,7 +14,7 @@ echo "Selected directory: $selected_dir"
1414
# Function to wait for drive to appear
1515
wait_for_drive() {
1616
local side="$1"
17-
osascript -e "display dialog \"Put the ${side} half of the keyboard into bootloader mode and connect it via USB\" buttons {\"OK\"} default button \"OK\"" >/dev/null
17+
osascript -e "display notification \"Put the ${side} half of the keyboard into bootloader mode and connect it via USB\"" >/dev/null
1818
echo "Waiting for ADV360PRO drive to appear..."
1919
while [ ! -d "/Volumes/ADV360PRO" ]; do
2020
sleep 1
@@ -73,4 +73,4 @@ if ! copy_with_confirmation "right" "Right"; then
7373
fi
7474

7575
echo "Firmware flashing process completed!"
76-
osascript -e 'display dialog "Firmware flashing process completed!\n\nBoth left and right firmware files have been copied." buttons {"OK"} default button "OK"' >/dev/null
76+
osascript -e 'display notification "Firmware flashing process completed!\n\nBoth left and right firmware files have been copied."' >/dev/null

0 commit comments

Comments
 (0)