From 193797393f81029e93c078e46a66392be804d8dd Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sat, 23 Aug 2025 19:16:47 +0200 Subject: [PATCH] Exit if you don't have snapper but continue update --- bin/omarchy-snapshot | 5 +++++ bin/omarchy-update | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-snapshot b/bin/omarchy-snapshot index 5e743b42..5ed04bd5 100755 --- a/bin/omarchy-snapshot +++ b/bin/omarchy-snapshot @@ -8,6 +8,11 @@ if [[ -z $COMMAND ]]; then exit 1 fi +if ! command -v snapper &>/dev/null; then + echo "You need Snapper installed to be able to use omarchy-snapshot." + exit 127 +fi + case "$COMMAND" in create) DESC="$(omarchy-version)" diff --git a/bin/omarchy-update b/bin/omarchy-update index 52b5c47f..9cf8d514 100755 --- a/bin/omarchy-update +++ b/bin/omarchy-update @@ -2,7 +2,7 @@ set -e -omarchy-snapshot create +omarchy-snapshot create || [ $? -eq 127 ] omarchy-update-git omarchy-migrate omarchy-update-system-pkgs