Exit if you don't have snapper but continue update

This commit is contained in:
Ryan Hughes committed 2025-08-23 19:16:47 +02:00
1 parent 3880c49469
commit 193797393f
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -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)"