diff --git a/bin/omarchy-channel-set b/bin/omarchy-channel-set index 039d3292cdf8..d9187a1979a7 100755 --- a/bin/omarchy-channel-set +++ b/bin/omarchy-channel-set @@ -147,4 +147,4 @@ if [[ -z $dev_checkout ]]; then omarchy_security_enable_no_update_sudo 2>/dev/null || stop_for_older_destination fi -OMARCHY_UPDATE_USER_PATH="$user_path" "$OMARCHY_PATH/bin/omarchy-update" -y +OMARCHY_UPDATE_USER_PATH="$user_path" "$OMARCHY_PATH/bin/omarchy-update" --skip-confirm diff --git a/bin/omarchy-update b/bin/omarchy-update index 6e58f6dd8ce3..df031f98f8a4 100755 --- a/bin/omarchy-update +++ b/bin/omarchy-update @@ -2,8 +2,8 @@ # omarchy:summary=Update Omarchy and system packages # omarchy:alias=omarchy up -# omarchy:args=[-y] -# omarchy:examples=omarchy update | omarchy update -y +# omarchy:args=[-y|--skip-confirm] +# omarchy:examples=omarchy update | omarchy update -y | omarchy update --skip-confirm # omarchy:requires-sudo=true if [[ $- != *p* ]]; then @@ -100,9 +100,11 @@ omarchy-update-requires-free-space # -y suppresses Omarchy confirmation prompts; sudo authorization is still # required. Interactive review steps report and move on instead of waiting. +# --skip-confirm skips only the opening "Ready to update?" prompt so callers +# that already asked (channel switch) can still offer a reboot. [[ ${1:-} != "-y" ]] || export OMARCHY_UPDATE_UNATTENDED=1 -if [[ ${1:-} == "-y" ]] || omarchy-update-confirm; then +if [[ ${1:-} == "-y" || ${1:-} == "--skip-confirm" ]] || omarchy-update-confirm; then authorize_update # Before the snapshot: the cache is on the snapshotted subvolume, so pruning