diff --git a/bin/omarchy-update b/bin/omarchy-update index a3a7ac47..39ae5c0c 100755 --- a/bin/omarchy-update +++ b/bin/omarchy-update @@ -4,7 +4,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 -omarchy-update-confirm -omarchy-snapshot create || [ $? -eq 127 ] -omarchy-update-git -omarchy-update-perform +if omarchy-update-confirm; then + omarchy-snapshot create || [ $? -eq 127 ] + omarchy-update-git + omarchy-update-perform +fi diff --git a/bin/omarchy-update-confirm b/bin/omarchy-update-confirm index bc0c9f54..a5e87d4b 100755 --- a/bin/omarchy-update-confirm +++ b/bin/omarchy-update-confirm @@ -1,7 +1,5 @@ #!/bin/bash -set -e - gum style --border normal --border-foreground 6 --padding "1 2" \ "Ready to update Omarchy?" \ "" \ @@ -10,5 +8,5 @@ gum style --border normal --border-foreground 6 --padding "1 2" \ if ! gum confirm "Continue with update?"; then echo "Update cancelled" - exit 0 + exit 1 fi