#!/bin/bash # omarchy:summary=Prompt for confirmation before starting an update gum style --border normal --padding "1 2" \ "准备好更新了吗?" \ "" \ "• 更新一旦开始就不能中止!" \ "• 请确保已接通电源或电量充足" \ "" \ "更新内容: https://git.zacharyzhang.com/ZacharyZhang-NY/omarchycn/releases" echo if ! gum confirm "继续更新?"; then echo "已取消更新" exit 1 fi