mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Don't hardcode snapper configs, read the config list first
This commit is contained in:
@@ -16,7 +16,10 @@ case "$COMMAND" in
|
|||||||
create)
|
create)
|
||||||
DESC="$(omarchy-version)"
|
DESC="$(omarchy-version)"
|
||||||
|
|
||||||
for config in root home; do
|
# Get existing snapper config names from CSV output
|
||||||
|
mapfile -t CONFIGS < <(sudo snapper --csvout list-configs | awk -F, 'NR>1 {print $1}')
|
||||||
|
|
||||||
|
for config in "${CONFIGS[@]}"; do
|
||||||
sudo snapper -c "$config" create -c number -d "$DESC"
|
sudo snapper -c "$config" create -c number -d "$DESC"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user