企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
` `使用 `--question `选项创建一个问题对话框。 ` `下面的脚本示范了如何创建一个问题对话框: ~~~ #!/bin/bash getYN=`zenity --question --text="你想要继续吗?"` case $? in 0) echo "继续执行" ;; 1) echo "停止执行";; -1) echo "发生意外错误。";; ~~~ ![](https://img.kancloud.cn/8c/bd/8cbd796396231cc4df66fdf0174d2792_414x241.png)