From 7589683cd11a49514304c997460916a365aed095 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 28 Jul 2025 09:58:51 +0200 Subject: [PATCH] Adjust migration to check for whether fastfetch already has the change or not --- migrations/1753683888.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/migrations/1753683888.sh b/migrations/1753683888.sh index 2e7b53d..ca08d7b 100644 --- a/migrations/1753683888.sh +++ b/migrations/1753683888.sh @@ -1,4 +1,5 @@ echo "Adding Omarchy version info to fastfetch" -if [ -d ~/.config/fastfetch ]; then - cp ~/.local/share/omarchy/config/fastfetch/config.jsonc ~/.config/fastfetch/ -fi \ No newline at end of file +if ! grep -q "omarchy" ~/.config/fastfetch/config.jsonc; then + cp ~/.local/share/omarchy/config/fastfetch/config.jsonc ~/.config/fastfetch/ +fi +