]> git.zue.dev - git.zue.dev/commitdiff
update minutely cron job script to use git show for file existence check
authorAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 10:46:24 +0000 (10:46 +0000)
committerAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 10:46:24 +0000 (10:46 +0000)
cron/minutely.sh

index 87633d874a51527884691ca12230ef92dfad7439..a0bd8db6aa5a958a2b3a4243128a86b333c674ed 100644 (file)
@@ -16,7 +16,7 @@ fi
 cd "$GIT_ZUE_DEV" || { echo "Failed to change directory to $GIT_ZUE_DEV. PANIC!"; exit 1; }
 
 # can we see the docker-compose.yaml file in the repo?
-git cat-file HEAD:"$DOCKER_COMPOSE_FILENAME" > /dev/null 2>&1 || { echo "$DOCKER_COMPOSE_FILENAME not found in the repository. PANIC!"; exit 1; }
+git show HEAD:"$DOCKER_COMPOSE_FILENAME" > /dev/null 2>&1 || { echo "Failed to find $DOCKER_COMPOSE_FILENAME in the repository. PANIC!"; exit 1; }
 
 # compare our local copy of the docker-compose.yaml with the one in the repo
 if ! git diff --quiet HEAD:"$DOCKER_COMPOSE_FILENAME" "$DOCKER_COMPOSE_DIRECTORY/$DOCKER_COMPOSE_FILENAME"; then
This page took 0.027604 seconds and 4 git commands to generate.