Skip to content

Instantly share code, notes, and snippets.

@y-marui
Created November 15, 2023 01:53
Show Gist options
  • Save y-marui/85e2c40d4f5b71af98849b84524d8071 to your computer and use it in GitHub Desktop.
Save y-marui/85e2c40d4f5b71af98849b84524d8071 to your computer and use it in GitHub Desktop.
Confirm dialog in macOS terminal
FLAG=$(osascript -e 'display dialog "アップデートを開始します。"'); if [[ $FLAG == "button returned:OK" ]]; then echo "アップデート"; else echo "キャ ンセル"; fi
@y-marui
Copy link
Author

y-marui commented Nov 15, 2023

スクリーンショット 2023-11-15 10 54 28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment