Improve update error catching

This commit is contained in:
Ryan Hughes
2025-10-23 21:33:23 -04:00
parent 50e68f466e
commit 413d292f2a
5 changed files with 11 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
set -e
COMMAND="$1"
OMARCHY_PATH=${OMARCHY_PATH:-$HOME/.local/share/omarchy}
@@ -17,7 +19,7 @@ create)
DESC="$(omarchy-version)"
echo -e "\e[32mCreate system snapshot\e[0m"
# Get existing snapper config names from CSV output
mapfile -t CONFIGS < <(sudo snapper --csvout list-configs | awk -F, 'NR>1 {print $1}')