Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/omarchy-channel-set
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 5 additions & 3 deletions bin/omarchy-update
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down