From abab886d1a98fe4624da157daf0186a63df01b35 Mon Sep 17 00:00:00 2001 From: George Powell Date: Tue, 24 Feb 2026 18:11:42 -0500 Subject: [PATCH] abort if already up to date --- .gitignore | 2 ++ deploy.sh | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6415f92..8dfb182 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ llms-* embeddings* *bible.xml engwebu_usfx.xml + +deploy.log diff --git a/deploy.sh b/deploy.sh index f705179..5f7c321 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,7 +4,12 @@ set -e cd "$(dirname "$0")" echo "Pulling latest changes..." -git pull +PULL_OUTPUT=$(git pull) +echo "$PULL_OUTPUT" +if [ "$PULL_OUTPUT" = "Already up to date." ]; then + echo "Nothing to deploy." + exit 0 +fi echo "Installing dependencies..." bun i