Created
November 15, 2023 01:53
-
-
Save y-marui/85e2c40d4f5b71af98849b84524d8071 to your computer and use it in GitHub Desktop.
Confirm dialog in macOS terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FLAG=$(osascript -e 'display dialog "アップデートを開始します。"'); if [[ $FLAG == "button returned:OK" ]]; then echo "アップデート"; else echo "キャ ンセル"; fi |
Author
y-marui
commented
Nov 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment