From 07b89e0ad88cf7d71572a7794b27829abbe04625 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 28 Jun 2025 11:48:08 -0700 Subject: [PATCH] Only run this if we are missing bat --- migrations/1751135253.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/migrations/1751135253.sh b/migrations/1751135253.sh index b830627..aa0e3ea 100644 --- a/migrations/1751135253.sh +++ b/migrations/1751135253.sh @@ -1,3 +1,5 @@ -# Add missing installation of bat -echo "Add missing installation of bat (used by the ff alias)" -yay -S --noconfirm --needed bat +if ! command -v bat &>/dev/null; then + # Add missing installation of bat + echo "Add missing installation of bat (used by the ff alias)" + yay -S --noconfirm --needed bat +fi