From 169ef6ec9eb868c619ac073230f35776bc119018 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 8 Mar 2026 17:01:33 +0100 Subject: [PATCH 1/4] Time has to be updated before git repo is pulled Or SSL certificate will complain --- bin/omarchy-update | 3 ++- bin/omarchy-update-perform | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/omarchy-update b/bin/omarchy-update index 086e78c9..20238574 100755 --- a/bin/omarchy-update +++ b/bin/omarchy-update @@ -5,7 +5,8 @@ set -e trap 'echo ""; echo -e "\033[0;31mSomething went wrong during the update!\n\nPlease review the output above carefully, correct the error, and retry the update.\n\nIf you need assistance, get help from the community at https://omarchy.org/discord\033[0m"' ERR if [[ $1 == "-y" ]] || omarchy-update-confirm; then - omarchy-snapshot create || (( $? == 127 )) + omarchy-snapshot create || (($? == 127)) + omarchy-update-time omarchy-update-git omarchy-update-perform fi diff --git a/bin/omarchy-update-perform b/bin/omarchy-update-perform index 5cf6e329..9c22adf2 100755 --- a/bin/omarchy-update-perform +++ b/bin/omarchy-update-perform @@ -3,14 +3,13 @@ set -e # Ensure screensaver/sleep doesn't set in during updates -hyprctl dispatch tagwindow +noidle &> /dev/null || true +hyprctl dispatch tagwindow +noidle &>/dev/null || true # Capture update logs (CLICOLOR_FORCE keeps gum styled when stdout is piped through tee) export CLICOLOR_FORCE=1 exec > >(tee "/tmp/omarchy-update.log") 2>&1 # Perform all update steps -omarchy-update-time omarchy-update-keyring omarchy-update-available-reset omarchy-update-system-pkgs @@ -24,4 +23,4 @@ omarchy-update-analyze-logs omarchy-update-restart # Re-enable screensaver/sleep after updates -hyprctl dispatch tagwindow -- -noidle &> /dev/null || true +hyprctl dispatch tagwindow -- -noidle &>/dev/null || true From 07f4e53701e5938258f30a34dd99b0d9426d433f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 8 Mar 2026 17:02:31 +0100 Subject: [PATCH 2/4] Better output --- bin/omarchy-update-time | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-update-time b/bin/omarchy-update-time index 14fc8b6f..bc53a651 100755 --- a/bin/omarchy-update-time +++ b/bin/omarchy-update-time @@ -1,4 +1,4 @@ #!/bin/bash -echo "Updating time..." +echo -e "\e[32mUpdate time...\e[0m" sudo systemctl restart systemd-timesyncd From e0bd449c71d50864e9e4011cfda4068caaf752fc Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 8 Mar 2026 17:03:06 +0100 Subject: [PATCH 3/4] Presentation --- bin/omarchy-update-time | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-update-time b/bin/omarchy-update-time index bc53a651..4d333f9a 100755 --- a/bin/omarchy-update-time +++ b/bin/omarchy-update-time @@ -1,4 +1,4 @@ #!/bin/bash -echo -e "\e[32mUpdate time...\e[0m" +echo -e "\e[32mUpdate time\e[0m\n" sudo systemctl restart systemd-timesyncd From ef93f6356c5ea0fab17cbf94a470a7f3a4d40695 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 8 Mar 2026 17:04:12 +0100 Subject: [PATCH 4/4] Move to git update to ensure it's not lost --- bin/omarchy-update | 1 - bin/omarchy-update-git | 2 ++ bin/omarchy-update-time | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-update b/bin/omarchy-update index 20238574..76fb755b 100755 --- a/bin/omarchy-update +++ b/bin/omarchy-update @@ -6,7 +6,6 @@ trap 'echo ""; echo -e "\033[0;31mSomething went wrong during the update!\n\nPle if [[ $1 == "-y" ]] || omarchy-update-confirm; then omarchy-snapshot create || (($? == 127)) - omarchy-update-time omarchy-update-git omarchy-update-perform fi diff --git a/bin/omarchy-update-git b/bin/omarchy-update-git index 8fef3a19..42516230 100755 --- a/bin/omarchy-update-git +++ b/bin/omarchy-update-git @@ -4,5 +4,7 @@ set -e echo -e "\e[32mUpdate Omarchy\e[0m" +omarchy-update-time + git -C $OMARCHY_PATH pull --autostash git -C $OMARCHY_PATH --no-pager diff --check || git -C $OMARCHY_PATH reset --merge diff --git a/bin/omarchy-update-time b/bin/omarchy-update-time index 4d333f9a..14fc8b6f 100755 --- a/bin/omarchy-update-time +++ b/bin/omarchy-update-time @@ -1,4 +1,4 @@ #!/bin/bash -echo -e "\e[32mUpdate time\e[0m\n" +echo "Updating time..." sudo systemctl restart systemd-timesyncd